Problem

Construct a solution algorithm for the following programming problems. To obtain your fi...

Construct a solution algorithm for the following programming problems. To obtain your final solution, you should:

• define the problem

• group the activities into modules (also consider the data that each module requires)

• construct a hierarchy chart

• establish the logic of the mainline using pseudocode

• develop the pseudocode for each successive module in the hierarchy chart

• desk check the solution algorithm.

Design an algorithm that will produce a payroll register from an employee file. Each input record contains the employee number, the hours worked that week and the rate of pay.

Your program is to read the employee file and, for each employee number, to retrieve the employee’s name from a table of employee numbers and names. The table contains about 100 entries, and is in sequence of employee number, with the number 9999 used as a sentinel to mark the end of the table. If the employee number cannot be found in the table, a message is to print on the report and no more processing is to be performed for that record. The gross pay for each employee is also to be calculated as hours worked multiplied by rate of pay.

Print a detail line for each employee, listing the employee’s number, name, hours worked, rate of pay and gross pay. Print headings and column headings at the top of each page, allowing for 45 detail lines per page. Print the total number of employees and total gross pay at the end of the report.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 10
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT