135k views
3 votes
A county collects property taxes on the assessment value of property, which is 60 percent of the property’s actual value. For example, if an acre of land is valued at $10,000, its assessment value is $6,000. The property tax is then 64¢ for each $100 of the assessment value. The tax for the acre assessed at $6,000 will be $38.40. Design a modular program that asks for the actual value of a piece of property and displays the assessment value and property tax.

Part I Using Visio, create a flow chart of the above-referenced program without using classes – just using functions.

Part II The county has decided to expand the program and allow the user to put in their property using the following class.
Property Class Design a class named property that has the following fields: yearBuilt: the yearBuilt field is an Integer that holds the house’s year built. streetAddress: is a String that holds the houses postal address.
ownerFirstName: is an String that holds the ower’s first name.
ownerLastName: field is an String that holds the ower’s last name.
size: the speed field is an String that holds the ower’s first name.
homeValue: is the value of the home that is used to calculate taxes.

In addition, the class should have the following constructor and other methods: constructors, accessors and taxes.

1 Answer

4 votes

Final answer:

To design a modular program that asks for the actual value of a piece of property and displays the assessment value and property tax, you can use functions.

Step-by-step explanation:

The correct answer is option B. To design a modular program that asks for the actual value of a piece of property and displays the assessment value and property tax, you can use functions. Here is an example of how the program can be structured:

  1. Create a function called calculateAssessmentValue that takes the actual value as input and returns the assessment value (which is 60% of the actual value).
  2. Create another function called calculatePropertyTax that takes the assessment value as input and returns the property tax (which is 64 cents for each $100 of the assessment value).
  3. In the main part of the program, ask the user for the actual value of the property.
  4. Call the calculateAssessmentValue function with the actual value as input and store the result.
  5. Call the calculatePropertyTax function with the assessment value as input and store the result.
  6. Display the assessment value and property tax to the user.

By using functions, you can separate the different computations into independent parts, making the program modular and easier to understand and maintain.

The correct answer is to design a program that calculates the assessment value and property tax based on the actual value of a property. In the first part, the program should create a modular flowchart without using classes.

Instead, it will utilize functions to prompt for the actual value of property and then display the calculated assessment value and property tax. In the second part of the program, enhancements are made to include a Property class, which will contain fields such as yearBuilt, streetAddress, ownerFirstName, ownerLastName, size, and homeValue.

The class will include constructors and methods for accessing the data and calculating taxes based on the homeValue.

User Saz
by
8.0k points