Computers and Technology

Assume the input data is structured as follows: first there is a non-negative integer specifying the number of employee timesheets to be read in. this is followed by data for each of the employees. the first number for each employee is an integer that specifies their pay per hour in cents. following this are 5 integers, the number of hours they worked on each of the days of the workweek. given this data, and given that an int variable total has been declared, write a loop and any necessary code that reads the data and stores the total payroll of all employees in total. note that you will have to add up the numbers worked by each employee and multiply that by that particular employee's pay rate to get the employee's pay for the week-- and sum those values into total. assume the availability of a variable, stdin, that references a scanner object associated with standard input.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Assume the input data is structured as follows: first there is a non-negative integer specifying th...

Questions in other subjects:

Konu
History, 22.06.2019 00:00