Question: Write a C++ program to read an employees ID and the number of hours worked in one week. Compute the weekly salary based on the

Write a C++ program to read an employees ID and the number of hours worked in one week. Compute the weekly salary based on the following criteria: a) If the number of hours worked is less than or equal to 40, the pay rate is $9.25 per hour. b) If the number of hours worked is greater than 40, the pay rate is 9.25 for 40 hours, plus $14.25 for each additional hour worked over 40 hours. Display the employees ID, hours worked, and calculated salary. Use appropriate formatting and named (symbolic) constants. Sample Input/Output #1: Please enter the employees ID and press : 4852 Please enter the total hours worked and press : 35.5 Employee ID: 4852 Hours Worked: 35.50 Salary: $ 328.38 Sample Input/Output #2: Please enter the employees ID and press : 4862 Please enter the total hours worked and press : 45.5 Employee ID: 4862 Hours Worked: 45.50 Salary: $ 448.38

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!