Friday, June 1, 2012

Salary Bonus

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to code salary bonus programs. Let's look at the problems.

Problem 1: 
Write a C program to calculate the salary earned by a worker such that -
- pay $500 at hours.
- if worked more than 20 hours a bonus worth ^$1000 will be given.
Your program should take total hours at input.


Solution:


























Problem 2:
Write a C program to calculate the salary  earned by a worker such that if his/her salary is more than $5000, he/she will get 5% bonus.
Your program should take salary as input.

Solution:












Thank you all..:)

0 comments:

Post a Comment