Question: Using C ++ Write a program that prompts the user to enter the name and the salary of an employee. Here the salary will denote
Using C ++ Write a program that prompts the user to enter the name and the salary of an employee. Here the salary will denote an hourly wage, such as $9.25 per hour. Also prompt user to enter the number of hours the employee worked in the past week. Then Compute the weekly pay. Any overtime work (over 40 hours per week) is paid at 150 percent of the regular wage. Print the paycheck for the employee. Here is an example
Enter name and hourly pay: John Doe
9.25
Enter hours worked: 42
Your pay for this week is: $397.35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
