Sie sind auf Seite 1von 3

Payroll System Application-Level Requirements List

1. Display Welcome message 2. Get user input 3. Compute total tax 4. Compute take home pay 5. Display total tax 6. Display take home pay

Tax Specifications Table

Salary Range in Dollars 0.00 1,499.99 1,500.00 2,999.99 3,000.00 4,999.99 5,000.00 7,999.99 8,000.00 14,999.99

Base Tax in Dollars 0.00 225.00 465.00 825.00 1,425.00

Percentag e of Excess 15% 16% 18 % 20% 25%

Additional Total Tax Range in Dollars 0.00 225.00 239.99 270.00 629.99 700.00 1,299.99 1,625.00 3,374.99

Total Tax Range in Dollars 0.00 225.00 464.99 735.00 1,094.99 1,525.00 2,214.99 3,050.00 4,799.99

Net Pay in Dollars

0 - 1,499.99 1,275.00 2,535.00 2,265.00 3,905.00 3,475.00 5,758.00 4,950.00 - 10,200.00

Input-Process-Output Chart
Complete the following Input-Process-Output chart for the application using a structured programming approach. Input Process Output

Salary Gross Pay Standard Rate SalaryOverage PercentofExcess AdditionalTax BaseTax GrossPay TotalTax

Identify CountryCode Subtract StandardRate from GrossPay Multiply SalaryOverage by PercentofExcess Add AdditionalTax and BaseTax Subtract TotalTax from Gross Pay

Write Gross Pay Salary Overage Write Additional Tax Write Total Tax Write Net Pay

Hierarchy Chart Main Module

Welcome Message

Input Data

Perform Calculations

Output Results

Analysis Process: 1. 2. 3. 4. 5. Input: Item Salary Item Gross Pay Item Standard Rate Item Percent of Excess Item Salary Overage Item Additional Tax Item Base Tax Item Total Tax Item Net Pay Output: Gross_Pay Additional_Tax Total_Tax Net_Pay Design Main Module Set grossPay as real Set additionalTax as real Set totalTax as real Set netPay as real (real: >0) (real: >0) (real: >0) (real: >0) (integer: 1 1,000,000) (integer: 1 - 1,000,000) (integer: 1,500) (integer: 1 25) (integer: 1 1,000,000) (integer: 0.00 10,000) (integer: 0.00 100,000) (integer: 0.00 1,000,000) (integer: 0.00 1,000,000) Display a program title. Prompt for the Salary Call calculation module Display the NetPay Display the TotalTax

Write Take Home Pay Program Write This program computes the Net Pay Write Designed by Evonia Hogan Write Axia College at University of Phoenix Call Input Data Module Call Perform Calculations Modules Call Output Results Module End Program End Main Module Input Data Module
Repeat Write Enter the gross pay. Input Gross_Pay Set Net_Pay = Salary - Total_Tax Write Gross_Pay, Total_Tax, Net_Pay Write Process another employee? (Y or N) Input Response Until Response = N

End Input Data Module Perform Calculations Module Calculate SalaryExcess = GrossPay StandardRate, Write number > 1,499.99 , if less than 1,500.00, Then enter 0, else Calculate AdditionalTax = SalaryExcess * Percentage of Excess Calculate TotalTax = AdditionalTax + BaseTax Calculate NetPay = Salary TotalTax End Perform Calculations Module Output Results Module Write The Gross Salary is: $, grossSalary Write The Additional Tax is: $, additionalTax Write The Total Tax is: $, totalTax Write The Net Pay is: $, netPay End Output Results Module

Das könnte Ihnen auch gefallen