Question 2 50 pts Write C++ program that calculates and displays the weekly salary for an employee. The main() function prompts the user for an hourly pay rate, regular hours, and overtime hours....


Question 2<br>50 pts<br>Write C++ program that calculates and displays the weekly salary for an employee. The main() function prompts the user for an hourly pay rate, regular hours, and<br>overtime hours. Create a separate function to calculate overtime pay, which is regular hours times the pay rate plus overtime hours times 1.5 times the pay rate;<br>return the result to the main() function to be displayed.<br>Filename: MySalary.cpp<br>

Extracted text: Question 2 50 pts Write C++ program that calculates and displays the weekly salary for an employee. The main() function prompts the user for an hourly pay rate, regular hours, and overtime hours. Create a separate function to calculate overtime pay, which is regular hours times the pay rate plus overtime hours times 1.5 times the pay rate; return the result to the main() function to be displayed. Filename: MySalary.cpp

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here