#include #include void function_wage(float hours_worked, float hourly_rate); void main(void) { float hours, rate; cout <<"Please enter the numbers of hours worked this week :"; cin >> hours; cout <<"Please enter the hourly rate :"; cin >> rate; function_wage(hours, rate); } void function_wage(float hours_worked, float hourly_rate) { float wage, overtime; if (hours_worked <= 40) { wage = hours_worked * hourly_rate; cout <<"Your wage :" << wage << endl; } else if (hours_worked > 40) { overtime = (hours_worked - 40) * (hourly_rate * 1.5); wage = (40 * hourly_rate) + overtime; cout <<"Your wage :" << wage << endl; } }