Question: Write a complete C program to calculate total pay which includes net salary and bonus. The sample of output is shown in Figure 1.

Write a complete C program to calculate total pay which includes net salary and bonus. The sample of output

Write a complete C program to calculate total pay which includes net salary and bonus. The sample of output is shown in Figure 1. The program is organized into several functions as follows: double basic Salary () - Ask the user to enter basic salary. double EPF (double) - To calculate the amount of employee evident fund (EPF) deduction from basic salary. double calculate Bonus (double) - To calculate the amount of bonus. Assume bonus is half of basic salary. void display Total Pay (double, double, double) - To calculate the total pay after EPF deduction and bonus reward. Salary : RM2500 EPF deduction : 10.8 Your total pay is RM2500.00 - RM270.00 + RM1250.00 = RM3480.00 Figure 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

C program include double basicSalary double salary double E... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!