Write a java application that calculates and displays

Assignment Help JAVA Programming
Reference no: EM13325318

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 
    }
}

Reference no: EM13325318

Questions Cloud

Firms can produce in the short run as long as they cover : Firms can produce in the short run as long as they cover
What is the index of refraction of this substance : Light travels at a speed of 1.947 × 108 m/s in a certain substance. What is the index of refraction of this substance
Which happens often with athletic and artistic events : “Scalping” refers to the practice of reselling tickets at a higher-than-original price, which happens often with athletic and artistic events. Is this “ripping off” why or why not?
Most students will agree that sleeping in on a school : Most students will agree that sleeping in on a school/work day has opportunity costs. Are there opportunity costs in sleeping in on a weekend (assuming you don’t work or go to school on Saturday/Sunday)?
Write a java application that calculates and displays : 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.
How high is she when the camera reaches her : A hot-air balloon has just lifted off and is rising at the constant rate of 2.4m/s. how high is she when the camera reaches her
Compute the companys margin and turnover : Compute the companys margin, turnover, and return on investment (ROI) for last year. (Do not round intermediate calculations. Round your final answers to 2 decimal places.
Calculate its vertical speed when it leaves the ground : A kangaroo can jump over an object 2.6 m high. Calculate its vertical speed when it leaves the ground
What is the charge on the inner surface of the conductor : The electric field at point P just outside the outer surface of a hollow spherical conductor of inner radius 10 cm and outer radius 20 cm has magnitude 445 N/C, what is the charge on the inner surface of the conductor

Reviews

Write a Review

JAVA Programming Questions & Answers

  Primary care-secondary care and tertitary care

Discuss the differences among primary care, secondary care, and tertitary care and the 6 C's of primary care

  Write java program using array list object

Write a java program (using eclipse) using ArrayList object to allow the professor to enter student's name, his or her's four test scores.

  Outline a test plan for a substantial real-life system

Describe how you would approach the design and testing process to ensure success and quality in the result and where are the risks? How are you going to address them?

  Personalize the time zone application of section 24.3

Personalize the time zone application of Section 24.3. Prompt the user to log in and specify a city to be stored in a profile. The next time the user logs in, the time of their favorite city is displayed automatically.

  Write java program to accept two words as input

Write a Java program that accepts two words as input and determines if one of them is resulting from changing the order of the others' letters.

  Hasanodddigit that returns whether any digit

d named hasAnOddDigit that returns whether any digit of a positive integer is odd. Your method should return true if the number has at least one odd digit and false if none of its digits are odd. 0, 2, 4, 6, and 8 are even digits, and 1, 3, 5, 7, 9 a..

  Write a class named test scores

Write a class named TestScores.The class constructor should accept an array of test scores as an argument.The class should have a method that returns the average of the test scores.

  Write java program to store employee id number

Use employee data file called employees.txt should comprise at least 5 employee records. Each record stores employee ID number (six digits) last name, first name, middle inital,gender(m or f).

  Write a java program using the java graphics

Your task for this assignment is to write a Java program using the Java Graphics class to create an example of a computer generated image. This is an opportunity for you to explore computer graphics and exercise some individual creativity.

  Considered to be an improved version

Part (c) is considered to be an improved version of Part (b). You may use an array (2-dimessional) to store some values that has been computed during the run so that when making recursive calls the program does not compute certain values over and ..

  Write a bag class with a generic type

Write a Bag class with a generic type. Write a class such as item that has a name and price. Add objects of item to the bag and find the average and the total of the price of all items in the bag.

  Write an array where the user can input 7 temperatures

Write an array where the user can input 7 temperatures; include a 'for' loop. Make sure the temperatures are larger than -100 and smaller than or equal to 120, if not, make sure the user enters a valid number. Make sure the temperature is between the..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd