Write a C++ program to compute and display a person’s salary as determined by the following expressions: If the number of hours worked is less than or equal to 40, the person receives the inputted...


Write a C++ program to compute and display a person’s salary as determined by the following expressions:


If the number of hours worked is less than or equal to 40, the person receives the inputted basic rate per hour; otherwise, the person receives the first 40 hours at the basic rate and their remaining hours at 1.5 times the basic rate.


The program should request the basic rate and the hours worked like input and should display the salary earned as output. Give an appropriate input prompt and label output appropriately.


Salary with Overtime Program<br>Please enter the number of hours worked:<br>38<br>Please enter the hourly rate:<br>8.0<br>Your salary for the week is $304.00<br>

Extracted text: Salary with Overtime Program Please enter the number of hours worked: 38 Please enter the hourly rate: 8.0 Your salary for the week is $304.00

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here