a. Design the logic for an application for a company that wants a breakdown of payroll by department. Input includes each employee's last name, first name, department number, hourly salary, and number of hours worked. Th e output is a list of the seven departments in the company (numbered 1 through 7) and the total gross payroll (rate times hours) for each department.
b. Modify Exercise 7a so that the report lists department names as well as numbers. The department names are shown in the accompanying table.