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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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 &lt;= 4999.99) Set Base_Tax = 465.00 Set Rate = .18 Set Excess = Salary 3000.00 else if(Salary &lt;= 7999.99) Set Base_Tax = 825.00 Set Rate = .20 Set Excess = Salary 5000.00 else (Salary &lt;= 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

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 Right Arrow Icon
Ask a homework question - tutors are online