{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Main module

Main module - Set salary excess is<=1499.99 input 15 If...

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

Main module Declare Salary Amount as string Declare Base ,Excess, Salary as real Write “payroll Program” Write “This program computes the tax on payroll,” Call Input Data Module Call Output Module End Main ModuleWrite Input Data module Write "Enter Salary" Input Salary If (salary<=(1499.99) Set base_tax=0 Set excess_tax=salary Set rate=.15 else If (salary<=(2999.99) Set base_tax=225.00 Set excess_tax=Salary-1500 Set rate=.16 Else if (salary<=(4999.99 ) Set base_tax=465.00 Set excess_tax= Salary-3000.00 Set rate=.18 Else if(salary<=( 7999.99 ) Set base_tax=825.00 Set excess_tax= Salary-5000.00 End if Perform Calculations module

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 salary excess is <=1499.99 +( input) + 15% If salary excess is 1500.00 < 2999.99 +(input)+16% +225.00 if16% +465.00 If18% +825.00 Output Results module Write “salary tax: ”,tax...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Main module - Set salary excess is<=1499.99 input 15 If...

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

View Full Document
Ask a homework question - tutors are online