Write a java application that calculates and displays the

Assignment Help Application Programming
Reference no: EM13380282

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.

1058_Calculate and displays the property tax.png

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.

------------------Receipt for Total Tax, Largest Tax and Average Tax------------------
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
}
}

What to submit
You should submit online the following files:

- Owner.java (this file contains class Owner)

- OwnerTest.java (this file contains class OwnerTest)

- Report.docx (this file contains a brief report that includes student name, student ID, course name, course code and test results (screenshots/test cases with results to show that your application is correctly working)).

Reference no: EM13380282

Questions Cloud

The period between 1848 - 1871 saw several government : the period between 1848 - 1871 saw several government changes in france. how were western values expressed in the
Question 1research the definition of a minimal cover : question 1research the definition of a minimal cover. explain it in your own words and give an example. question
Suppose you have a relation schema about teaching classes : suppose you have a relation schema about teaching classes that has the following attributes class instructor time and
Consider the following schema of ra b c d with functional : consider the following schema of ra b c d with functional dependenciesa -gt b b-gt c and b-gtd1- compute the closure
Write a java application that calculates and displays the : write a java application that calculates and displays the property tax for n property owners. n should be declared
Information has many facets value confidentiality integrity : information has many facets value confidentiality integrity privacy legality and so on. all information is not the same
Imagine that you have been hired as the database : imagine that you have been hired as the database administrator for a local department store. the department store has
1write a program that uses joptionpanes to perform the : 1.write a program that uses joptionpanes to perform the following stepsmiddotfirst display a welcome message to your
As a dba it is vital that you understand in detail how a : as a dba it is vital that you understand in detail how a query is processed by the dbms. since team retail is using

Reviews

Write a Review

Application Programming Questions & Answers

  Regional gardens ltd is a company that runs a number of

regional gardens ltd is a company that runs a number of related gardening enterprises. it has a large display garden

  Aimsthepurposeofthisprojectisforyoutodemonstrateyourundersta

aimsthepurposeofthisprojectisforyoutodemonstrateyourunderstandingofobjectorientedsoftwaredevelopmentinpractice.inorderto

  Task design and implement 2 projects for the falling

task design and implement 2 projects for the falling letters game using c and windows presentation foundation wpf

  Question 1we are given the following knowledge base of

question 1we are given the following knowledge base of travel informationnbspbycaraucklandhamilton.

  Lexical analyzersymbol table - holds the symbols accepted

lexical analyzersymbol table - holds the symbols accepted by the lexical analyzer or parser.each symbol may be a

  In a typical cpu implementation the design-cycle starts

in a typical cpu implementation the design-cycle starts with a cc based instruction set simulator iss of the target

  Android web appsnbsp-nbspcustomer ordering mobile app of a

android web appsnbsp-nbspcustomer ordering mobile app of a pizza house objective customer mobile application for

  In industry plant conditions are monitored and if there are

in industry plant conditions are monitored and if there are problems it is necessary to have some way of indicating

  Identify and describe the processes involved in the

identify and describe the processes involved in the management of the active directory infrastructure.identify and

  Memory location 2000h has the word 5000h stored in it what

memory location 2000h has the word 5000h stored in it. what does each location contain after inc byte ptr2000h. also

  Part a - state space search using lisp this part of the

part a - state space search using lisp this part of the assignment requires you to solve the following problem using

  Q1- architecting web-applications using web-services has

q1- architecting web-applications using web-services has advantages. forexample you can gain increased security.

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