{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

it210_appendix_g

# it210_appendix_g - Axia College Material Appendix G...

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

Axia College Material Appendix G Sequential and Selection Process Control Structure In the following example, the second line of the table specifies that tax due on a salary of \$2000.00 is \$225.00 plus 16% of excess salary over \$1500.00 (that is, 16% of \$500.00). Therefore, the total tax is \$225.00 + \$80.00, or \$305.00. Salary Range in Dollars Base Tax in Dollars Percentage of Excess 1. 1 0.00-1,499.99 0.00 15 % 2. 2 1,500.00-2,999.99 225.00 16 % 3. 3 3,000.00-4,999.99 465.00 18 % 4. 4 5,000.00-7,999.99 825.00 20 % 5. 5 8,000.00-14,999.99 1425.00 25 % Process 1. Display program title 2. Display Directions 3. Get Salary 4. Calculate taxes 5. Output results Input: Salary (real: Salary) IT 210

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

View Full Document
Output: Total Taxes (real: Taxes) Salary IPO Chart: Input Process Output Salary (from user) Get Salary Salary Salary Calculate Taxes Taxes Salary, Taxes Output taxes Display Salary, Taxes IT 210
FlowChart IT 210

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

View Full Document
Pseudo code Main Module Declare Salary as real Declare taxes as real Declare Gross income as real Declare RateA as real Declare RateB as real Declare Salary Bracket as real Declare total Taxes Owed as real Call Get Salary Module Call Calculate Taxes Module Call Output Taxes Module End Main Module Input Module Write “Welcome to Income Tax Program” Write “Please Input Salary”

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.

{[ snackBarMessage ]}