Design the logic for an application for a company that wants a report containing a breakdown of payroll by department. Input includes each employee's last name, first name, department number, hourly salary, and number of hours worked. The 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.