Chapter 15
Selectors

   15.1 Two-Way Branching Instructions
   15.2 Multi-Way Branching Instructions
   15.3 Conditional Expressions
   15.4 Assignment #20: Branching Instructions

15.1 Two-Way Branching Instructions

15.2 Multi-Way Branching Instructions

15.3 Conditional Expressions

Exercises

15.4 Assignment #20: Branching Instructions

Due: Mo, June 2, midnight

Download the taxes.java program from the web page, and provide the missing code to the ‘int compute(int wages, boolean married, int children, boolean old, boolean blind, boolean student, boolean citizen)’ method. The method should compute the taxes to be paid for income provided by wages, according to the following criteria.

Assume ‘lab20’ for the submit command, and submit your ‘taxes.java’ program.

Note: Files that fail to compile, and execute when applicable, will not be examined. They will be awarded a grade of 0 points.