{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

pay - cout<<"How much do you get paid per...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // This progam calculates the user's pay. #include <iostream> using namespace std int main() { double hours, rate, pay // Get the number of hours worked. cout << "How many hours did you work? " cin >> hours // Get the hourly pay rate.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "How much do you get paid per hour? " cin >> rate // Calculate the pay. pay = hours * rate // Display the pay. cout << "You have earned $" << pay << endl return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online