Not trying to take over Prelude's glory here but we haven't had anything for a while.
So here goes. The basic purpose is to create a program that gets the start and end times for a person's work day and calculate how much time they worked.
To Do: Get the start and end times from the user and calculate the hours worked per day. Then calculate the total time worked for one week. Print a summery screen, such as "Day 1 worked X hrs..."
To assume: The user begins and ends their shift on the same day. The user will be entering the hours in 24 hour format.
To Do: Same as newbie, however calculate the amount of regular time and amount of overtime.
To assume: The work day is 8 hours, any time over this is overtime. The work week is 40 hours, any time over this is overtime. (Note if a person works overtime on a single day but falls below 40 hrs for the week they still get the overtime)
To Do: Same as novice, however get the time format from the user beforehand. Ie ask if they want to enter the hrs in 24 or 12 mode.
To Do: Same as Intermidate but do not assume that the begin and end times will be on the same day (think graveyard shift)
To assume: No 24 hour shifts
To Do: Same as Intermidate +, but find out from the user when overtime begins. (Some people work 10 or 12 hr shifts on normal time)
To Do: Same as Intermidate ++. Also Get the full time from the user and from format determine if 12 or 24 hr time.
To assume: 12 hr time will be inputted as "hh:mm", 24 hr time will be inputted as "hhmm".
To Do: Same as Advanced but also calculate double overtime. Have to ask user when double time begins. Also deal with the user not having an overtime period. (Example: my sister in law is a nurse, she works 12 hr shifts. After 12 hrs she goes into double time, with no overtime period)
Post source code here. This is more of an exercise then it is a challange so I won't be looking for the "winner." If Prelude or one of the mods want to judge thats fine.
Note: Just in case you are wondering: NO! This isn't a school assignment. Not even in a C class This is purely for fun.