Please help c++ code. Thanks!
The function paycheck is a void function that calculates the amount to be paid to an employee based on the hours worked and rate per hour. The formula for calculating the amount to be paid is as follows: for the first 40 hours, the rate is the given, for hours over 40, the rate is 1.5 times the given rate. The function receives as a parameters an integer value(number of hours worked) and the rate per hour. It should return to the calling program a floating point value(the amount to be paid), which is also passed as a parameter. Write the function. Use as formal parameters an integer hrs(number of hours worked), a floating point value rate (rate per hour) and a reference parameter amnt.