/***************************************************************************** * Determines the amount of a paycheck including overtime. * * Inputed: rate, hours. * * Outputed: pay. (The amount of money for that time period). . * * Written: October 18, 2001 * * By: Ronald Roberts * *****************************************************************************/ //Program 23 //18OCT01 #include #include #include int main() { double rate=0, hours=0, overtime=0, pay=0, temp3=0, rate2=0; cout<<"Please input the hourly rate:"<>rate; cout<<"Please input the hours:"<>hours; if (hours>40) { overtime=hours-40; rate2=(rate+(rate/2.0)); pay=rate2*overtime; pay=pay+(rate*40); cout<<"Your total pay is $"<