Question: C++ The program below computes a persons gross earnings, the income tax paid, and the net earnings. Write the prototype and function definition for input()
C++
The program below computes a persons gross earnings, the income tax paid, and the net earnings.
Write the prototype and function definition for input() which is to prompt the user for and input the hourly wage and the number of hours worked.
Write the prototype and function definition for calc() which is to calculate the gross earnings, income tax as 20% of gross earnings and the net earnings (gross earnings tax). Gross earnings is hourly wage times hours worked or if hours worked is more than 40, then gross earnings is 40 times hourly wage plus 1.5 times the number of hours worked overs 40.


Make no changes to main(). #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
