This assessment item is designed to test your understanding of variables, constants, types, operators,
standard console input/output, loops, if statements, classes, objects and methods.
Assessment task
Write a java application that calculates and displays the charges for N residents who pay the fees of
water usage quarterly to a local city council in Australia. N should be declared as a constant and
should be equal to the largest digit of your student id number (e.g. if your student id is s0705544 then
N should be equal to 7). Assume N=3, if the largest digit of your student id number is less than 3. The
charge standards of domestic water usage set by the local city council are shown below in the Table 1.
Table 1. Domestic Water Usage Charges
Usage (kL) Charge ($)
Tier 1 (up to 24kL) $0.7/kL (base rate)
Tier 2 ( from 25kL to 49kL) 105% base rate
Tier 3 ( from 50kL to 74kL) 115% base rate
Tier 4 ( above 75kL) 130% base rate
From the above table, it can be seen that the charge of water usage is categorized