Question: Can you please help me to solve this problem?
Punch in/out Screen
The 'punch in/out screen' shall:
Save the punch in or punch out date and time of the employee to a memory object (or file).
The date and time, 'I' for Punched In or 'O' for punched out along with the Employee ID shall be saved to a memory object called time-clock (or file called timeclock.txt).
The recorded date for 'punched in' and 'punched out' shall be the method for matching corresponding records.
The program shall test to ensure that there is a 'Punched in' record for the corresponding day before a 'punched out' record is saved. If none is found, prompt the user to enter a 'punched in' time.
When the user has punched in or out, the program shall show a message indicating that the employee has punched in or out, the employee ID, date and time.
In console based applications the screen shall display "Press any key to continue"
In console based applications the program shall return to the main menu after a key is pressed when the "Press any key to continue" prompt is displayed.
Optional functionality: include the day of the week to the data saved.
GUI
The main screen shall:
- Add New Employee - Displays new employee screen
- Punch In/Out - Displays punch in/out screen
- Report - Displays report screen
- Exit - Exits the program
- Display an input field called "Choice" to input one of the four options.
- Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again.
- Optional functionality: If the user enters an incorrect value more than 3 times, display a prompt that the program is exiting and close the program.