gross pay
I do not know how to write into words
Gross Pay is $20.00 per hour. User tells you how many hours worked, you compute gross pay.
You just wrote it in words. How do you write it in code? Like so:
1 2 3
|
double hours_worked, gross_pay, pay_rate = 20.;
std::cin >> hours_worked;
gross_pay = hours_worked * pay_rate;
|
Topic archived. No new replies allowed.