Suggested Solution

Suggested Solution

Task 1 Task 2 Task 3

Task 1

Click on the Tax Calculator code button above.

Start a new project in your IDE called IncomeTaxCalculator

Copy and paste the code into your IDE and see if you can get it working.

Task 2

In your notes, complete this table:

Question Your answer
What will the program output if the user enters 10000?.  
Write down an example of a variable identifier.  
Write down examples of 2 different data types.  
Some variables use the final modifier. How does this affect the variable?  
Write down an example data being assigned to a variable.  
This code uses printf(). Why?  

Task 3 - Modular programming

Can you redesign the program so that tax calculations are performed by a function called taxCalculator.

The main function will call taxCalculator()

In the main program, can you figure out how to call the taxCalculator function 10 times? Or as many times as the user wants?

Task 4 - Adaptation

Using your own knowledge of programming and/or your own ideas about finance, can you adapt this program to make it more interesting, meaningful, helpful or fun!