Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop the logic for a company that wants a report containing a breakdown of payroll by department. Input: employee's department number, hourly salary, number of
Develop the logic for a company that wants a report containing a breakdown of payroll by department. Input: employee's department number, hourly salary, number of hours worked Processing: calculate the gross pay for each employee and add it to the correct department accumulator Output: A list of the seven departments in the company and the total gross payroll for each department. The department names are shown in table below. If department is invalid, output a message "Invalid Department Number". The department names that are in the dept table.xlsx file is declared in the Declarations statement as an array with a size of 7. You also need to declare array of accumulators (size 7) where you will add the gross pay based on the department number for each employee. You decide on the sentinel value for end of file. You should have a mainline program logic, housekeeping, detail(), finish() (endOfJob() modules. C6 dept table.xlsx C6 Flowchart #1 Criteria Ratings Pts Input Variables, include defining arrays: one for accumulators and one for department names. O pts 4 pts Full Marks No Marks 4 pts Includes main program logic, housekeepingo, detail(.endOfJob() modules 2 pts Full Marks O pts No Marks 2 pts Compute gross pay into appropriate array accumulator. 4 pts Full Marks O pts No Marks 4 pts Output "Invalid department" if error. 2 pts Full Marks O pts No Marks 2 pts Output 7 department names and the gross pay accumulators 4 pts Full Marks O pts No Marks 4 pts Overall logic 4 pts Full Marks O pts No Marks 4 pts
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started