![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 03.05.2021 14:00 alananicoleee
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
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 20:40
Peripherals are part of the main computer. true false
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
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](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/en.png)
English, 13.11.2020 01:00
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 13.11.2020 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 13.11.2020 01:00
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)
Physics, 13.11.2020 01:00
![question](/tpl/images/cats/biologiya.png)
Biology, 13.11.2020 01:00
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.11.2020 01:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 13.11.2020 01:00