Question
Create a Python Program that creates a CSV file with a prompt to name it. Then Ask The user to input the name of employee,
Create a Python Program that creates a CSV file with a prompt to name it.
Then Ask The user to input the name of employee, after an employees name is provided ask the user to paste the shift data
it will appear 1 of the following formats Ethier
M1PGAXAVXP Duration: 34 minutes, 59 seconds Started: December 12, 2022 8:46 PM Ended: 15 days ago.
55WUY1CBJX Duration: 1 hour, 25 minutes, 22 seconds Started: December 11, 2022 3:06 PM Ended: 16 days ago
The format is dependent on whether the shift is over an hour, you may ask the user if the shift they are going to input is over or under an hour to make this eaiser
the data should be appended into a csv file to look like this
Employee Name | Shift ID | Hours | Minutes | seconds | Shift start date |
John Doe | M1PGAXAVXP | 0 | 34 | 59 | 12/12/2022 |
John Doe | 55WUY1CBJX | 1 | 25 | 22 | 12/11/2022 |
John Doe | Total | 2 | 0 | 21 |
Next the program should ask the user to enter a number of 1, 2, or 3
a 1 means they have more shifts to imput for this employee
a 2 means they have a new employee to enter shift data for this will tally up last employees total
a 3 means they are done entering data and to save and close the file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started