//Program 1.1 Simple Payroll Gaddis ed 8 //compute gross pay based on hours worked and payrate //shows how to use the cin object to input information #include using namespace std; int main() { float hours, rate, pay; //Ask user for hours worked and hourly pay rate cout << "How many hours did you work? "; cin >> hours; cout<< "What is your hourly rate? "; cin >> rate; //Find the total wages paid and display pay = hours * rate; cout << "Your total pay without overtime is $" << pay << endl; return 0; }