how can i do this program please help me T_T
A module that will summarize logins and logouts of each employee. This module will use logs.txt as data source and produce another text file summary.txt. Summary.txt should contain but not limited to Employee's ID; the number of minutes late; the number of hours work.
Software/Hardware used:
ASKED:
August 15, 2011 12:13 PM
UPDATED:
March 31, 2012 6:42 PM
Dark
What environment and/or programming language are you working in?
What are employee’s logging into?
Phil
It would appear to be a 3 step process.
1. Define the data elements you want in the sunnary.txt file
2. Create SQL statements using variables to insert data from teh logs.txt file into the summary.txt file.
3. Create a program (CMD) that will allow input of the desired variables and pass them to program created in step #2. Then print or do what ever you desire with the data in summary.txt
Adding to Philip’s comment, it is hard to get into much more detail until we get more specifics from you.
Yes more details are needed, but, this could be a homework. Reading from text files and writing the results to text files could not be the best approach on a real system.
Sample user interface
Pahirapan Corporation
Enter Employee ID: aannn
Enter Date: mm/dd/yy
Enter Login: hh:mm
Enter Logout: hh:mm
The module should be able to check for invalid time
The module should append the valid record a text file logs.txt
AND I USE JAVA
Asking others to do your homework is not a good idea.
However, I’m sure people would try to help you if you show what you have done so far, and ask specific questions or post the specific problems you have found when trying to solve the problem by yourself.
i already doing my own and im just asking some opinion so if i saw i’ll add it on my program that i resently doin not just asking someone and wait to do it but not doing my part..
Totally agree with Carlosdl, you really need to do it yourself.
And no one works over midnight? So there is never a different day and endtime < starttime?
Phil