Write a program to the givrn specification

Assignment Help JAVA Programming
Reference no: EM131270049

Write a program (propertyTax.java) to the following specification:

The local property tax is about to be collected by the government. You are to program an alternative way of calculating the property tax.

A user is asked for the following information about their home:

Number of bedrooms·

Is it urban or rural?·

Is it terraced, semi-detached, or detached?·

Use the method specifications overleaf to develop the methods calculateSize and calculatePropertyTax.

Use the methods to calculate the property tax for a user and then display the value to the user.

Method name - calculateSize

Description - This method determines roughly how big the house might be.

It uses the following formula:

Initial size of the house is set as follows:

Terraced: 800 square feet

Semi-detached: 900 square feet

Detached: 1,000 square feet

Each bedroom adds 100 square feet.

E.g. Semi-detached house with 3 bedrooms = 900 + (3 x 100) = 1,200

Returns The estimated square footage

Parameters accepted:

1. Number of bedrooms

2. House type (i.e. Is it terraced, semi-detached or detached)

See the following for calculatePropertyTax:

Method name - calculatePropertyTax

Description - This method calculates the property tax as follows:

The tax is initially calculated as 15% of the square footage.

If the house is urban, the tax is multiplied by 1.25

Example:

Estimated square footage of 1,200 square feet.

Urban: 1,200 x 15% = 180

Urban, so multiply by 1.25... 180 x 1.25 = 225

Returns - The property tax amount

Parameters accepted:

1. Estimated square footage

2. Value indicating if house is urban or rural

The system must accept multiple properties, and give the Highest, Lowest, Average, and Total Property Tax Information.

Reference no: EM131270049

Questions Cloud

Differences between human smuggling and human trafficking : What are the differences between human smuggling and human trafficking? Are most people entering the United States every year smuggled or trafficked into the country?
Movement from comics to a variety of activities : According to Larry Marder, the president of the McFarlane Companies, the company has changed and morphed and grown over the years from a company that simply produced comic books to a company that is also involved in sports figures, music videos, and ..
The past two years was stifling product development : As a manager of the company's sales force of 12 people,you report directly to the CEO, who also happens to be the sole owner and founder of Pro Media. Over coffe last week, he mentioned that the company's growth of less than 10 percent for the past t..
What are the byte addresses that memory word 42 spans : Draw the number 0xFF223344 stored at word 42 in both big-endian and little-endian machines. Your drawing should be similar to Figure 6.4. Clearly label the byte address corresponding to each data byte value.
Write a program to the givrn specification : Write a program (propertyTax.java) to the following specification: The local property tax is about to be collected by the government. You are to program an alternative way of calculating the property tax.
Assuming the capacity of the lift truck is one unit load : The route sheet for a part is as follows: A-F-E-D-C-B-A-F Two thousand pieces will flow through from the first machine A to the final machine F based on the given sequence of operations. A unit load size of 50 is initially specified at the first mach..
What is the issue of consideration : There are four models of Intervention related to the responsibility of the scientist or practitioner. Please choose one of the following and explain it: Total intervention, No intervention, Limited intervention, and Directed intervention.
What is the byte address of memory word 42 : Draw the number 0xFF223344 stored at word 42 in both big-endian and little-endian machines. Your drawing should be similar to Figure 6.4. Clearly label the byte address corresponding to each data byte value.
How jaguar implements aggregate planning : How jaguar implements aggregate planning?

Reviews

Write a Review

JAVA Programming Questions & Answers

  What is polymorphism concept means and give an example

what this concept means and give an example to illustrate your understanding of the topic. You must use Java classes and Java interfaces to help with your description.

  Reads contents of two vectors

Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.

  Design an object-oriented java application

You are to design an object-oriented Java application to let the user play a dice game that uses two dices. The player bets on a value and the dices roll

  Write a jsp webpages ask the user to enter data

Write a jsp webpages ask the user to enter the following data- First name, Last name

  Create a hang man type program

Create a hang man type program - create the full final picture image, and then rub out a piece and save it as a different filename, then rub out another part and save it as a different name.

  Write a computer program that prompts the user for a number

Write a computer program that prompts the user for a number, creates an array for that number of random integers, and then uses the sophisticated form of bubble sort to order the array

  Menu based program to maintain student records

Write a menu based program to maintain student records. Your program should take the following inputs: 1. Student first name (max. 20 characters) 2. Student last name, (max. 20 characters) 3. Student scores (float/double), eg. 85.4 Problem

  Write a program that reads in investment amount

Write a program that reads in investment amount, annual interest rate, and number of years and displays the future investment value

  Sample run of the program to illustrates the expected outpu

Write a program WordCount.java that takes contents of a file and list the five most frequently used words in it.Your program should prompt user for a filename and - assuming that afile with specified filename exists - attempt to read the file and pro..

  Declares three arraylist objects referenced by the objects

Write a program called ThreeArrayLists.java that declares three ArrayList objects referenced by the objects named priceList, quantityList, and amountList

  Convert string values from keyboard to numeric values

How do we convert string values from the keyboard to numeric values? How do we create output strings containing the values from our variables and how to answer the problem? Any help would be appreciated.

  Prepare a demo program

Design, and implement a class that will be used in a program that simulates a combination lock. The lock has a circular knob with the numbers 0 through 39 marked on the edge, and it has a three-number combination, which we will call x,y,z.

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