✍️ Get Writing Help
Uncategorized

Amodification

 

This assignment is amodificationof the textbook Chapter 5, Exercise 7, page 170.

 

 

 

DIRECTIONS:This assignment has two (2) parts. For each part create separate documents using Word or a text editor for the pseudocode solutions and separate documents using a drawing tool for the flowcharts.

 

 

 

Name each file with the part it addresses. For example, for Part 1’s pseudocode the file name will be:part1.doc or part1.txt.

 

 

 

Hints for both parts:

 

Use a 2D array for department’s payroll. You can use the index of the array as the department’s number.

 

The assignment will not know how many employees will be processed unknown size.

 

Use a loop to capture and process all the employee data.

As you handle the capturing the employee data, calculate the payroll for the employee and save it into the department array.

 

 

 

Part 1:

 

Design the logic for a company application that breaks down payroll by department. Input includes each employee’s last name, first name, department number, hourly salary, and number of hours worked. Output is a list of the seven departments in the company (numbered 1 through 7) and the total gross payroll for the department (sum of therate x hoursof all its employees) for each department.

 

Example input should be as follows

 

Wood, Anita, 4, 52, 40

 

Example output should be as follows:

 

1: 5648

 

2: 51688

 

3: 546983

 

4: 893166

 

5: 234689

 

6: 194136

 

7: 46813549

 

Part 2:

 

Modify Exercise 7a so that the report listsdepartment namesas well asnumbers. The department names are shown in the table below.

 

 

 

Example output should be as follows:

 

Personnel, 1: 5648

 

Marketing, 2: 51688

 

Manufacturing, 3: 546983

 

Computer Services, 4: 893166

 

Sales, 5: 234689

 

Accounting, 6: 194136

 

Shipping, 7: 46813549

 

 

 

SUBMISSION:Submit all four (4) documents, the pseudocodes as aPDF, .txt,orWorddocuments and the charts as aPDF, .png, orWorddocuments as attachments

admin

Expert academic writer and education specialist helping students in the UK, USA, and Australia achieve their best results.

Need help with your own assignment?

Our expert writers can help you apply everything you've just read — to your actual assignment.

Get Expert Help Now →
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?