Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a library out of this project #145

Open
abranhe opened this issue Jan 6, 2020 · 2 comments
Open

Creating a library out of this project #145

abranhe opened this issue Jan 6, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@abranhe
Copy link
Member

abranhe commented Jan 6, 2020

Thanks for anyone contributing to this project. It's been a huge the amount of work, and many, many algorithms over the pass year. I would like to start converting the All ▲lgorithms Project to a library to make it more useful and even more reusable.

We could have all the algorithms inside an /algorithms folder and keep start creating an evaluating the algorithm on the library from those algorithms already implemented. I know its a huge work but we can accomplish it together.

We will use clib a package manager for C developers. I will be more flexible on pull request right now to let people contribute on the project, and also remove some outgoing PRs, but eventually they will be as mentioned earlier on the /algorithms folder.

So have an amazing 2020 folks!

@hypnotizedhero-git
Copy link

@abranhe sir, I am happy to help.

@whoisyashu
Copy link

I have to write a program to print two Salaries one as the basic and the other with bonus according to the days if he had worked for days above 25 he'll get bonus other wise he'll not and the one who get bonus will get 1000 per day for each day starting from 25 to the day till 31 like if he came 26 days he'll get 1000 bonus and if 27 he'll get 2000 and so on till 31
The user will input the basic salary and the days which he worked

#include<stdio.h>
int main()
{
int salary , bonus , days, extra=0;
printf("Enter the Salary of the employee:\n");
scanf("%d",&salary);
printf("Enter the days employee worked:\n");
scanf("%d",&days);
while(days>32){
printf("Invalid Input! Please Enter a valid Input.\nEnter the days employee worked:");
scanf("%d",&days);
}
if(days>25){
extra=days -25;
bonus=(extra*1000)+salary;
printf("Basic Salary:%d\nSalary(with bonus):%d",salary,bonus);
}else{
printf("Basic Salary:%d",salary);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants