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

  Descriptioncreate a web application for sheridan restaurant

descriptioncreate a web application for sheridan restaurant reviews that contains the following functionalitybull

  Write a generic class

Write a generic class (using Java generics) called Pair that stores two values of the generic type.  It should have a constructor to set them, two methods getfirst() and getsecond() to retrieve them.

  Write a program to track hourly employee arrival

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock.

  Write a one-class java program

Write a one-class Java program with at least one method (besides main) to determine if the data in your dataset (i.e., in data.txt) follows Benford's law.

  Calculate the cross product of two numeric vectors function

Create a function that calculate the cross product of two numeric vectors Function Name: calcCrossProduct

  Mean and standard deviation write a program that reads a

mean and standard deviation. write a program that reads a set of floating-point data values from the input. when the

  Creating mapreduce program to calculatingpi

Creating MapReduce program to calculatingpi, Step 1: Generate an input file to the Pi MapReduce program and Create a regular Java program which accepts two command line arguments

  Using a linked implementation of graph write a method that

using a linked implementation of graph write a method that takes two nodes as input and returns true if joining an edge

  Eligible for garbage collection

When is the B object, created in line 3, eligible for garbage collection - There is no way one can be absolutely certain.

  Provide method that compellingly differentiates the class

Provide at least one field and one method that compellingly differentiates each class from the others. Do not include constructors, getters, or setters in your description.

  Improve the word jumble game

Improve the Word Jumble game presented in this chapter so that each word is paired with a hint. If the player enters hint, then the program should show the corresponding hint.

  Prepare a job shop scheduling

Prepare a Job Shop Scheduling for 2x3 Jobs X Machines using Ant Colony Optimization

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