1. Write a C++ program that computes the salary for a set of employees. Create a function called salary which receives t
Posted: Fri May 20, 2022 6:37 pm
1. Write a C++ program that computes the salary for a set of employees. Create a function called salary which receives the number of hours and the hour rate and returns the salary. The program will prompt the user to the values then call the function. (continue asking the user to enter the values until he/she enters a negative number) double salary (double hours, double hourRate) Enter the hours and hourRate: 20 25 The salary is: 500 Do you want to compute another salary (Negative value to Exit): 1 Enter the hours and hourRate: 35.5 100.67 The salary is: 3573.78 Do you want to compute another salary (Negative value to Exit): -1