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

  1. Company's earnings-per-share.
  2. Price of one share of stock.
  3. 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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!