#include int main() { double hours, rate; double basePay, overtime = 0; printf("Enter your hourly rate of pay: $ "); scanf("%lf", &rate); printf("Enter the number of hours you worked this week: "); scanf("%lf", &hours); if (hours > 40) { basePay = 40 * rate; overtime = 1.5 * rate * (hours - 40); } else basePay = hours * rate; printf("Hours worked = %.2f\n", hours); printf("Hourly pay rate = %.2f\n", rate); printf("Base pay = $ %.2f\n", basePay); printf("Overtime pay = $ %.2f\n", overtime); printf("Total paycheck this week = $ %.2f\n", basePay + overtime); return 0; }