157k views
4 votes
Write a program that will read the payroll file. It should output the name and paycheck amount. Also output the total pay of all employees. The payroll file contains the name followed by hourly wage followed by hours worked.

Here is the employees and what you'll be using:

"Bones_Bob"
10.50
40
"Smith_Sally"
11.25
40
"Toll_Tom"
8.10
35
"Anderson_Ann"
7.25
20
"Carlson_Carl"
9.75
22

1 Answer

5 votes
Here is the solution. Hope it will help you
Write a program that will read the payroll file. It should output the name and paycheck-example-1
User Shreyash Mishra
by
6.4k points