Main Module

# Main Module - Set Rate =.16 Set Excess = Salary – 1500.00...

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

Main Module Declare salary as real Declare taxes as real Call Get Salary Module Call Calculate Taxes Module Call Output Taxes Module End main module Get Salary Module Print “Enter Salary“ Get Salary Get Salary Calculate Salary Module Declare Base_Tax as real Declare Excess as real Declare Rate as real if(Salary <= 0 OR Salary >= 15000.00) Display “Re-Input Salary” Set Base_Tax = 0.0 Set Rate = 0.0 Set Excess = 0.0 else if(Salary <= 1499.99) Set Base_Tax = 0.0 Set Rate = .15 Set Excess = Salary else if(Salary <= 2999.99) Set Base_Tax = 225.00

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Set Rate = .16 Set Excess = Salary – 1500.00 else if(Salary <= 4999.99) Set Base_Tax = 465.00 Set Rate = .18 Set Excess = Salary – 3000.00 else if(Salary <= 7999.99) Set Base_Tax = 825.00 Set Rate = .20 Set Excess = Salary – 5000.00 else (Salary <= 14999.99) Set Base_Tax = 1465.00 Set Rate = .25 Set Excess = Salary – 8000.00 end if Set taxes = Base_Tax + (Excess*Rate) End Calculate_Taxes Output Taxes Module Display “Salary = \$“, Salary, “taxes = \$”, Taxes End Output Taxes...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

Main Module - Set Rate =.16 Set Excess = Salary – 1500.00...

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

View Full Document
Ask a homework question - tutors are online