Ask your own question, for FREE!
Computer Science 26 Online
Ballery1:

prog check plz

Ballery1:

``` //This program 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. 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; } ```

Ballery1:

it worked!!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!