Question: C++ Write a function (findWeeklyPay). The function will have 2 parameters: the number of hours worked (a float) and the hourly pay rate (a float).
C++ Write a function (findWeeklyPay).
The function will have 2 parameters: the number of hours worked (a float) and the hourly pay rate (a float).
Assume that the employee is paid the hourly pay rate for each hour worked up to and including the first 40 hours. Hours over 40.0 (if any) are overtime and are paid at 1.5 times the hourly rate.
The function returns the weekly pay amount (a float value)
DO NOT do any read or write operations in the function.
Declare local variables if appropriate.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
