The application should ask the user to enter the name of


Write a java application that calculates and displays the property tax  for N property owners. N  should be declared as a constant and it should be equal to the largest digit of your student  ID number (e.g. if your ID number is S223483 then N should be equal to 8 and you can declare it as final int N=8). The property tax is based on the assessed value of the property as shown below in Table 1.

Table 1. Assessed Value of the Property and Tax

2140_assignment.png

Assessed Value of the Property  Tax

$10000 or less  $0.0 (no tax)
Over $10000 but not more than $100000  1% tax
Over $100000 but not more than $300000  3% tax
Over $300000 but not more than $500000  4% tax
Over $500000  5% tax
 
The application should ask the user to enter the name of the property owner and the assessed value of the property for each owner (total N owners) and calculate the property tax. The application should display the message with  tax and the value of the property after tax as shown in the example below. At the end of  the Nth  owner, a  receipt with  total  tax, largest tax  and average  tax  should be displayed.  The total  tax  is calculated by adding  the  tax amount  for all  owners.  The largest tax  is calculated by finding the  largest amount from tax paid by N owners. The average tax is calculated by dividing the total tax with the number of owners. The format for your input and output must be same as given in example below.
 
Example for N=3 (Note that a loop should be used for reading the input and displaying the output)
 
Enter the name for Owner 1: Tim Pointing
Enter the value of the property for Owner 1: 9500
Hello Tim, your tax is $0 and the value of the property after tax is $9500.
 
Enter the name for Owner 2:  Amy McDonald
Enter the value of the property for Owner 2: 200000
Hello Amy, your tax is $6000 and the value of the property after tax is $194000.
 
Enter the name for Owner 3:  Rick Hilton
Enter the value of the property for Owner 3: 600000
Hello Rick, your tax is $30000 and the value of the property after tax is $570000.
 
 Total tax is $36000
Largest tax is $30000
Average tax is $12000
-------------------------------------------------------------------------------------------------
 
The application should be user-friendly by  displaying appropriate welcome and  exit messages.  The application should use the following classes and methods. 
 
public class Owner
{
    //declare constants
    //declare variables 
    //declare constructor 
    //declare & define all methods including get and set methods
}
 
public class OwnerTest 
{
    public static void main(String[] args)
    {
  //create object
  //get name, tax and value of the property after tax  
//print output as shown in the example 
    }
}

Solution Preview :

Prepared by a verified Expert
JAVA Programming: The application should ask the user to enter the name of
Reference No:- TGS0663986

Now Priced at $70 (50% Discount)

Recommended (94%)

Rated (4.6/5)