Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions