can someone help me with this please

0 Ronaldo Saidov · September 29, 2015
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





Post a Reply

Replies

Oldest  Newest  Rating
0 Jon Z. · September 30, 2015
start doing it yourself and ask for help when you are stuck.
  • 1

C++

107,007 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator