Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Vi Special Issue On Database And Expert Systems Applications Lncs 7600

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2012th Edition

3642341780, 978-3642341786

Students also viewed these Databases questions