#include using namespace std; /** 3. Write a C++ {\em function} that takes four arguments, H, C, r1 and r2, where H is the total hours worked, r1 is the hourly pay if you worked less than or equal to C hours and r2 is the hourly pay for each hour above C. The function should return the net pay. Use this function in a program that asks for H, C, r1 and r2 as input and prints out the net pay. **/ //function prototype double netpay(double H, double C, double r1, double r2); int main(){ double H, C, r1, r2, pay; cout<<"Input H, C, r1 and r2 on a single line separated by a space\n"; cin>>H>>C>>r1>>r2; pay=netpay(H,C,r1,r2); cout<<"Net pay is "<