Click here to Skip to main content
15,904,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 1:36
emmy_23200327-May-09 1:36 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 1:54
mveOriginalGriff27-May-09 1:54 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 1:55
mveOriginalGriff27-May-09 1:55 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 4:29
mveOriginalGriff27-May-09 4:29 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 20:58
emmy_23200327-May-09 20:58 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 22:08
mveOriginalGriff27-May-09 22:08 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200328-May-09 1:11
emmy_23200328-May-09 1:11 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff28-May-09 1:24
mveOriginalGriff28-May-09 1:24 
Yes. But you will hav eto do the work - it's not that hard!

Look at the data in the file you showed earlier:

Enroll No,194,date2,30/4/2009,time2,0:3:38,Check Out
Enroll No,78,date2,30/4/2009,time2,0:3:43,Check Out
Enroll No,78,date1,30/4/2009,time1,9:44:47,Check In
Enroll No,107,date1,30/4/2009,time1,9:44:52,Check In
Enroll No,108,date1,30/4/2009,time1,9:57:39,Check In
Enroll No,106,date1,30/4/2009,time1,10:40:47,Check In
Enroll No,109,date1,30/4/2009,time1,15:23:30,Check In
Enroll No,107,date2,30/4/2009,time2,17:6:27,Check Out
Enroll No,194,date1,30/4/2009,time1,17:9:44,Check In
Enroll No,132,date1,30/4/2009,time1,17:32:19,Check In
Enroll No,106,date2,30/4/2009,time2,17:35:31,Check Out
Enroll No,78,date2,30/4/2009,time2,17:35:41,Check Out
Enroll No,132,date1,30/4/2009,time1,17:45:2,Check In
Enroll No,108,date2,30/4/2009,time2,18:33:18,Check Out
Enroll No,109,date2,30/4/2009,time2,22:30:18,Check Out
Enroll No,194,date2,1/5/2009,time2,0:4:18,Check Out
Enroll No,132,date2,1/5/2009,time2,0:4:29,Check Out


Each line is a record:
Number 194 Checked out on 30/4/2009 @ 0:3;38
Number 78 Checked out on 30/4/2009 @ 0:3:43
Number 78 Cheked in on 30/4/2009 @ 9:44:47
and so forth...


This means you have to match up the check in with the appropriate check out, and work out the time difference - I am sure this is what the exercise you were set says (and I have never seen the exercise...)
The data you need is not all on one line. Think about what you have been taught in the course so far: I am sure that the structures and loops etc. cover what you need. Wink | ;)

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200328-May-09 1:28
emmy_23200328-May-09 1:28 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff28-May-09 1:59
mveOriginalGriff28-May-09 1:59 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200329-May-09 23:02
emmy_23200329-May-09 23:02 
GeneralRe: reading text file and calculating the working hours for each employee Pin
Henry Minute27-May-09 0:39
Henry Minute27-May-09 0:39 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 0:45
mveOriginalGriff27-May-09 0:45 
QuestionViewer Pin
ellllllllie26-May-09 22:07
ellllllllie26-May-09 22:07 
QuestionA Combobox problem Pin
leung wilson26-May-09 21:51
leung wilson26-May-09 21:51 
AnswerRe: A Combobox problem Pin
Vimalsoft(Pty) Ltd26-May-09 22:54
professionalVimalsoft(Pty) Ltd26-May-09 22:54 
AnswerRe: A Combobox problem Pin
jaypatel51227-May-09 0:23
jaypatel51227-May-09 0:23 
QuestionOffice Ribbon functionality Pin
windhopper26-May-09 21:22
windhopper26-May-09 21:22 
QuestionRe: Office Ribbon functionality Pin
mandar77719-Jul-09 20:34
mandar77719-Jul-09 20:34 
QuestionA small problem with Extended GridView in Edit Mode Pin
M S Nayak26-May-09 20:50
M S Nayak26-May-09 20:50 
QuestionHow do I Generate a Number in C# Pin
Mads11526-May-09 20:20
Mads11526-May-09 20:20 
AnswerRe: How do I Generate a Number in C# Pin
stancrm26-May-09 20:39
stancrm26-May-09 20:39 
GeneralRe: How do I Generate a Number in C# Pin
Mads11526-May-09 20:45
Mads11526-May-09 20:45 
GeneralRe: How do I Generate a Number in C# Pin
stancrm26-May-09 20:47
stancrm26-May-09 20:47 
GeneralRe: How do I Generate a Number in C# Pin
Mads11526-May-09 21:09
Mads11526-May-09 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.