Question: Write a program that prompts the user to enter the pay rate per hour and the number of hours you worked each week. The program
Write a program that prompts the user to enter the pay rate per hour and the number of hours you worked each week. The program then outputs the following: Calculate and output the employee's gross pay, deductions, and net pay, Deductions include the following Federal Withholding Rate 18 % gross wages State Withholding rate 4.5 % of gross wages Hospitalization $ 25.65 Union Dues: 2 % of gross wages. Write a program to prompt the user to enter a companys earnings-per-share for the year and the price of one share of stock. The program then outputs/display companys price-to-earnings ratio (price/earnings). (Test the program with the amounts $5.25 and $68.25)
Outputs of your program
- Company's earnings-per-share.
- Price of one share of stock.
- Company's price-to-earnings ratio.
You can upload your solution as a zipped folder containing the source code .cpp file and the screen shot pasted into a word document.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
