Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I've tried to do the program but the out didn't come out properly It didn't fetch the value for epf_deduction and BonusReward in DisplayTotal 3.
I've tried to do the program but the out didn't come out properly
It didn't fetch the value for epf_deduction and BonusReward in DisplayTotal
3. Write a complete C program to calculate total pay which includes net salary and bonus. Listed below are functions that need to be included in your program.: void BasicSalary() - Ask user to enter basic salary. void EPF (double) - To calculate the amount of employees evident fund (EPF) deduction from basic salary. void CalculateBonus (double) - To calculate the amount of bonus. Assume bonus is half of basic salary. double DisplayTotalPay (double, double) - To calculate the total pay after EPF deduction and bonus reward. 4 Your program output should be like below: Please enter your salary: 1200 Please enter the percentage of EPF deduction : 11 Your EPF deduction is RM132.00 Your bonus (half of salary) is RM600.00 Your total pay is RM1200.00 - RM132.00 + RM600.00 = RM1668.00 _ C:\Users\User\Documents\UTM'S\SECBH\SECJ1013 - Programming Technique 1\hanum.cpp - Dev-C++ 5.11 File Search View Project Execute Tools Style Window Help Edit TDM-GCC 4.9.2 64-bit Release (globals) 6 7 array ex58.cpp hanum.cpp 1 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
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