Programming Language Python Main Function Main Function First Reads File Employee Data Per Q37243771

Programming language python

main() function

The main() function first reads a file of employee data (perline): • name, • hours, • pay rate for each employee intolist(s).

The file may not exist the first time, it may exist and beempty, or it may exist and have data. Close the file after readingthe information into lists. You may use the split string functionto break a line into name, hours, pay rate.

The program then enters a loop that ends when 4 is selected by auser and that processes a menu of the following items: 1. Inputemployees’ information 2. Compute pay for all employees 3. Displaypayroll

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.