· Develop a C++ program that will determine thegross pay for each several employ
ID: 3610302 • Letter: #
Question
· Develop a C++ program that will determine thegross pay for each several employees. The companey pays"straight-time" for the first 40 hours by each employee and pays"time-and-a-half" for all worked in excess of 40 hours.
Enter hours worked (-1 to end): 39
Enter hourly rate of the worker (AED 00.00):10:00
The salary is: AED 390.00
******************************************
Enter hours worked (-1 to end): 45
Enter hourly rate of the worker (AED 00.00):20:00
The salary is: AED 950.00
******************************************
Enter hours worked (-1 to end): -1
Explanation / Answer
please rate - thanks #include #include using namespace std; int main() { double rate, total,hours,overtime; couthours; while(hours!=-1) {coutrate; if(hoursRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.