Checkpoint - Sequential and Selection Processing

Checkpoint - Sequential and Selection Processing - Input...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Running head: CHECKPOINT - SEQUENTIAL AND SELECTION PROCESSING 1 Checkpoint - Sequential and Selection Processing Lori Babler IT210 November 5, 2010 Stephen Welborn
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CHECKPOINT - SEQUENTIAL AND SELECTION PROCESSING 2 Checkpoint - Sequential and Selection Processing Sequential and Selection Processing Control Structure You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is calculated by adding the base tax for that salary range and the product of percentage of excess and the amount of salary over the minimum salary for that range. Design a program that solves this problem. Generate a set of input test values. Perform a design walkthrough to verify your design. Write “Enter Total Employee Pay this Period and Low Base Range”
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Input Employee Pay, Low Base Range Set amount = Employee Pay Low Base Range If amount <0 then Set Excess = Amount Write The Excess pay above the base range is $ Else Write The employee has no excess above the base salary range for this period Write What is the base tax to be applied to this salary range? Input Base Tax Set Amount = Employee Pay-base tax Write The Total Amount of pay less base tax is $ Write What is the Percentage of Excess to be applied to this salary range? Input Percentage Set amount = Excess Amount*Percentage = Amount to be added to base tax Write The additional amount to deduct for taxes based on excess salary is $ Write Total Pay for Employee this period Set Amount = Employee Salary-Base Tax-additional tax= Total Pay this period Display Total pay this period $ End Program...
View Full Document

Page1 / 2

Checkpoint - Sequential and Selection Processing - Input...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online