©brooks/cole, 2001 chapter 5 selection-- making decision

31
©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

Upload: eddy-lockwood

Post on 15-Jan-2016

232 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Chapter 5

Selection--MakingDecision

Page 2: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-1

Page 3: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-2

Page 4: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-3

Page 5: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-4

Page 6: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-5

Page 7: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-6

Page 8: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-7

Page 9: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-8

Page 10: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-9

Page 11: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-10

Page 12: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-11

Page 13: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-12

Page 14: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-13

Page 15: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-14

Page 16: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-15

Page 17: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-16

Page 18: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-17

Page 19: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-18

Program Calculate TaxesCalculate taxes based on marginal tax brackets.

1 Get income data (total income, taxes paid, dependencies)2 Calculate taxes (total tax, tax due)3 Print information

End Calculate Taxes==================== calcTaxes ==================calcTaxes1 taxable income = total income – dependent exemptions

2 total tax = tax for bracket 1 + tax for bracket 2

+ tax for bracket 3 + tax for bracket 4 + tax for bracket 53 tax due = total tax – taxes paidEnd calcTaxes

Page 20: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-19

Page 21: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-20

Page 22: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-21

Page 23: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-22

Page 24: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-23

Page 25: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-24

Page 26: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-25

Page 27: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-26

Page 28: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-27

Page 29: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-28

Page 30: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-29

Page 31: ©Brooks/Cole, 2001 Chapter 5 Selection-- Making Decision

©Brooks/Cole, 2001

Figure 5-30