subject

A company stores payment information for their employee working on a project and paid on a project basis, in a text file whose name is entered through keyboard (see a sample input file below). The first line of the file indicates the number of employees and each subsequent line corresponds to information related to an employee payment (employee name, number of hours worked and his/her hourly wage). Write a python program that reads such a file and displays the employees’ names, their hours worked, and their salaries. Finally, it displays the total payment. Your program should consider the following erroneous cases: ● The file does not open/exist

● The format of the data in the file is incorrect (e. g. hours = “1-” or salary = “unkown”)

in which case a RuntimeError exception should be raised and the processing should continue


A company stores payment information for their employee working on a project and paid on a project

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
You know the right answer?
A company stores payment information for their employee working on a project and paid on a project b...
Questions
question
Mathematics, 13.12.2020 23:00
question
Mathematics, 13.12.2020 23:00
question
Arts, 13.12.2020 23:00
question
Geography, 13.12.2020 23:00
Questions on the website: 13722360