Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
C program include double basicSalary double salary double E...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started