Preview

It210-Appendix G

Satisfactory Essays
Open Document
Open Document
436 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It210-Appendix G
Associate Program 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 $2,000.00 is $225.00 plus 16% of excess salary over $1,500.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 |0.00-1,499.99 |0.00 |15 % |
|2 |1,500.00-2,999.99 |225.00 |16 % |
|3 |3,000.00-4,999.99 |465.00 |18 % |
|4 |5,000.00-7,999.99 |825.00 |20 % |
|5 |8,000.00-14,999.99 |1425.00 |25 % |

Main Module
Write “The purpose of this program is to calculate tax for a given salary range”

Input Data Module
1>Write "Enter Salary"
2>Read salary
3>
4>If (sal < 1500) then
5>Tax = sal * .15
6>
7>If (sal > 1499.99) AND (sal < 3000) then
8>Tax = 225 + (sal - 1500) * .16
9>
10>If (sal > 2999.99) AND (sal < 5000) then
11>Tax = 465 + (sal - 3000) * .18
12>
13>If (sal > 4999.99) AND (sal < 8000) then
14>Tax = 825 + (sal - 5000) * .20
15>
16>If (sal > 7999.99) AND (sal < 15000) then
17>Tax = 1425 + (sal - 8000) * .25
18>
19>Write "The tax is" Tax

Test Input Values
Enter salary 705
The tax is 108

Enter salary 1548
The tax is 2247.68

Enter salary 3050
The tax is 548

Enter salary 6076
The tax is 1215

Enter salary 10387
The tax is 2596.75

Design Walkthrough:

1.)Line 1 States “Enter Salary”
2.)The

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Acct 505 Course Project B

    • 598 Words
    • 3 Pages

    ACCT505 Part B Capital Budgeting problem Clark Paints, Inc. Data: Cost of new equipment $200,000 Expected life of equipment in years 5 Disposal value in 5 years $40,000 Life production - number of cans 5,500,000 Annual production or purchase needs 1,100,000 Initial training costs 0 Number of workers needed 3 Annual hours to be worked per employee 2,000 Earnings per hour for employees $12.00 Annual health benefits per employee $2,500 Other annual benefits per employee-% of wages 18% Cost of raw materials per can $0.25 Other variable production costs per can $0.05 Costs to purchase cans - per can $0.45 Required rate of return 12% Tax rate 35% Make Purchase Cost to produce Annual cost of direct material: Need of 1,100,000 cans per year $275,000 Annual cost of direct labor for new employees: Wages 72,000 Health benefits 7,500…

    • 598 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In the following example, the second line of the table specifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.00 (that is, 16% of $500.00). Therefore, the total tax is $225.00 + $80.00, or $305.00.…

    • 321 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Acc 220 Appendix C

    • 336 Words
    • 2 Pages

    |Direct materials budget |An estimate of the quantity and cost of direct materials to be |Analyzes the amount of raw materials that a manufacturing |…

    • 336 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hca 240 Appendix C

    • 300 Words
    • 2 Pages

    |4th |As the wounded part of the body reacts to the germs, |Certain cells destroy the germs |…

    • 300 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    It 210 Appendix I

    • 623 Words
    • 3 Pages

    Axia College Material Appendix I Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment above by typing into the textboxes below. Control Flow Diagram—Main Control [pic] Control Flow Diagram—Display Menu | | |[pic] | Control Flow Diagram—Get_Int_Value | | |[pic] | Control Flow Diagram—Convert Currency | | |[pic] | Control Flow Diagram—Display_Results |[pic] | PSEUDOCODE Main Module Declare Selection as an integer Declare CurrencyType as string Declare USDollar as real Declare ConvertedAmount as real Call Display/Selection Module Call Canadian Module Call Mexican Module Call English Module Call Japanese Module Call French Module Call Quit Module Call Output Module End Program…

    • 623 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Glg 101 Appendix F

    • 517 Words
    • 3 Pages

    If, for the model in Figure 12.11, h1 were 506 ft, h2 were 497 ft, and l were 150 ft, what would be the hydraulic gradient (in percent) between well #1 and well #2?…

    • 517 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IT210 R5 Appendix D 2

    • 197 Words
    • 2 Pages

    Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…

    • 197 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Bus 210 Appendix C

    • 319 Words
    • 2 Pages

    In the table below, categorize your actions during the event under each of the four functions of management.…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    IT/210 Appendix D

    • 453 Words
    • 4 Pages

    Consider the Input and Output Process Example program in Appendix B, in which you developed what are often called system-level requirements: the basis for all subsequent analysis and design steps. The following steps will take these system-level requirements and refine them into a detailed blueprint for the program.…

    • 453 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Bus210 Appendix D

    • 352 Words
    • 2 Pages

    |For a directive approach, I would start each employee’s first day with a |For the supportive approach, I would try to be friendly with my employees. I |…

    • 352 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hum 130 Appendix D

    • 765 Words
    • 3 Pages

    | The name of the Indigenous culture/religion presented in this website is the Japanese Religion Shinto.…

    • 765 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Com/220 Appendix F

    • 353 Words
    • 2 Pages

    |persuasive essay? |explain why it’s important to use legal drugs for what they’re intended. |…

    • 353 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Aed 204/Appendix F

    • 355 Words
    • 2 Pages

    Directions: Assume that you are on the school board of your school district and you are tasked with the job of strategic planning for issues facing your district. Complete the matrix below to determine the potential response of each of the religious groups in your community. Use the attached links to research the basic moral and ethical principles believed by each group. Then determine how you believe each group will react to the issue based on what you find. Provide a brief justification for your answer. After completing the matrix, write a 300- to 500-word summary of the significant similarities and differences among the different religious groups.…

    • 355 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Psy270 Appendix D

    • 414 Words
    • 3 Pages

    Going to war and having a traumatic experience there can cause Post Traumatic Stress Disorder, otherwise known as PTSD. This can happen right away or this could even start years after the traumatic period is over. This can cause the person to do things that might be harmful to themselves or to other people.…

    • 414 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hsm 210 Appendix E

    • 507 Words
    • 2 Pages

    In scenario one the prevention level being used is the Primary level of prevention. The reason I believe that this method is being used because the services offered through the agency are ones to prevent the abused women from being depressed and leading to other psychological disorders. In this particular scenario I wouldn’t do anything different, I think that the agency has a good plan in effect for dealing with potential hostile or violent situations. Instead of confronting the husband trying to talk rationally with him and defuse the situation while alarming the authorities is the best route for dealing with a person like that. In the case of the wife the programs offered through the agency promote self-worth and help prevent her from feeling bad about herself. Learning new job skills and healthy ways of thinking about oneself should prepare her for an independent lifestyle to provide for her and her children.…

    • 507 Words
    • 2 Pages
    Satisfactory Essays