can you guys help me with this im new dont understant that much yet

Write a program that calculates and prints one week’s pay for an individual. Assume the person only works Monday through Friday. The person’s base pay is $12.50 per hour. The person makes time and a half for all hours over eight in a single day and an additional weekly bonus of $5.00 per hour for every hour worked over 40 hours in a week. The program should ask the user to enter the number of hours worked each day and print the total pay for the week.
Sample Input/Output: [Input in red italics; Output in blue]
Example 1:
How many hours did you work on Monday: 8 [Enter]
How many hours did you work on Tuesday: 8 [Enter]
How many hours did you work on Wednesday: 8 [Enter]
How many hours did you work on Thursday: 8 [Enter]
How many hours did you work on Friday: 8 [Enter]
The total pay for the week is: $500.00
Example 2:
How many hours did you work on Monday: 8 [Enter]
How many hours did you work on Tuesday: 10 [Enter]
How many hours did you work on Wednesday: 7 [Enter]
How many hours did you work on Thursday: 12 [Enter]
How many hours did you work on Friday: 9 [Enter]
The total pay for the week is: $648.75
closed account (48T7M4Gy)
You need to show what you have done so far and where you are having problems. Unfortunately we can't advise if you haven't made a start beyond directing you to tutorials on C++.



I dont even know how to start it thats why im asking lol i googled it and watched a lot of videos but still dont get it i know its not my thing maybe
MassiCR7 wrote:
I dont even know how to start it thats why im asking lol i googled it and watched a lot of videos but still dont get it i know its not my thing maybe

It's not that difficult thought, at least give it a try.
Last edited on
at least tell me how to start
at least tell me how to start


I usually find the following to be a good starting point.

1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main()
{
   using namespace std;

   cout << "Hello World\n";

   return 0;
}
MassiCR7 wrote:
at least tell me how to start

Okay here you go.

First you need to know the structure of a C++ program.
http://www.cplusplus.com/doc/tutorial/program_structure

Second you need to look at the "Basics of C++.
http://www.cplusplus.com/doc/tutorial

After reading all this if you feel you need help, you can ask me:)
Last edited on
Topic archived. No new replies allowed.