|
-
September 1st, 2009, 01:27 AM
#1
C++ Date and Time
I need help please. I am new to C++. I want to create a program that would compute the weekly salary of the employees. The program would accept TIME-IN and TIME-OUT inputs then get the total hours for the day. The time format is in military time (e.g. 13:00 is 1:30 pm). I also want to get the total hours for the week.
Inputs: (1234, Josef Alarka, 380.00, 08:00, 17:01, and June 11-15, 2009)
Employee Number: 12345
Name: Josef Alarka
Salary Rate: 380.00
Time-In for Monday: 08:00
Time-Out for Monday: 17:01
.
.time in, time-out from monday to friday.
.
Time-In for Friday: 08:00
Time-Out for Friday: 17:01
Coverage Date: June 11-15, 2009
Outputs:
************************
Employee Number: 1234
Name: Josef Alarka
Salary Rate: Php 380.00 (with currency format. still i don't know how to format this)
************************
Date Covered: June 11-15, 2009
Total Number of Hours Worked: 40 hrs.
Net Income: Php 1900.00
************************
Any help is very much appreciated. Thank you very much.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|