Write a program in C to calculate the bonus and the salary that the employee will get?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program in C to calculate the bonus and the salary that the employee will get??

A company decides to give bonus to all its employees on the eve of New Year. A 3% bonus on salary is given to the male workers and 6% bonus on salary to the female workers. If the salary of the employee is less than Rs. 8000 then the employee gets an extra 2% bonus on salary. Considering the above case study, briefly explain the software development methods to calculate the bonus and the salary that the employee will get.

24th Nov 2018, 4:01 AM
Abhinav
Abhinav - avatar
2 Answers
0
Please share what you've tried so far. If you get stuck at a specific point, we'd be happy to help you out! Making others write a code from start to finish is discouraged in this platform. I hope you understand. Thanks!
24th Nov 2018, 4:04 AM
Kishalaya Saha
Kishalaya Saha - avatar
0
If gender = Female then bonus = 6 Else bonus = 3 If salary < 8000 then bonus = bonus + 2
24th Nov 2018, 4:05 AM
Amir Galanty
Amir Galanty - avatar