a. 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.
b. Modify "a" so that the report lists department names as well as numbers. The department names are:
Dept. Num. Department Name
1. Personnel
2. Marketing
3. Manufacturing
4. Computer Services
5. Sales
6. Accounting
7. Shipping
c. Modify the report created in exercise "b" so that it prints a line of information for each employee before printing the department summary at the end of the report. Each detail line must contain the employee's name, department number, department name, hourly wage, hours worked, gross pay, and withholding tax.
Withholding taxes are based on the following percentages of gross pay:
Weekly Gross Pay ($) Withholding (%)
0.00 - 200.00 10
200.01 - 350.00 14
350.01 - 500.00 18
500.01 - up 22
Program #2
a. Daily Life Magazine wants an analysis of the demographic characteristics of its readers. The Marketing Department has collected reader survey records containing the age, gender, marital status, and annual income of readers. Design an application that accepts reader data and produces a count of readers by age groups as follows: under 20, 20-29, 30-39, 40-49, and 50+
b. Create the logic for a program that would produce a count of readers by gender within age group - that is, under 20 females, under 20 males, etc.
c. Create the logic for a program that would produce a count of readers by income groups as follows: under $20,000, $20,000- $29,999, $30,000-$49,999, $50,000-$69,999, and $70,000 and up.
1. Pseudocode correctly specified and structured for #1a and #2a.
2. Pseudocode correctly specified and structured for #1b.
3. Pseudocode correctly specified and structured for #1c.
4. Pseudocode correctly specified and structured for #2b.
5. Pseudocode correctly specified and structured for #2c.