/* L4-2.cpp (Incorrect Overtime) Moe gets $10 per hour for the first 40 hours and $15 per hour for each hour over 40. Thus, if he works 42 hours he should get $430. This program has NO SYNTAX ERRORS. Do you see why? For which input will it give an incorrect output? a) for hrs=42? b) for hrs=35? */ #include using namespace std; int main() { int hrs; double pay; cout <<"Enter the number of hours worked " << endl; cin >> hrs; if (hrs <= 40) pay = hrs * 10; else cout << "you worked overtime " << endl; pay = 400 + 15 * (hrs - 40); cout << "Your pay is $" << pay << endl; return 0; }