1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Paladinen [302]
2 years ago
9

You are to calculate the property tax for tax payers. You will ask the county tax clerk if they want to run the program and init

iate a loop that runs the program if the county clerk inputs a 1. When the county clerk chooses to run the program, you will ask the county tax clerk to input the lot number and assessed value of the house. Each property is taxed at a rate of 5% of the assessed value. The program will end when the county clerk enters a value of 0 when prompted by your program to either run the program again or quit. Use a while loop to validate the lot number to make sure that it falls between the range of 0 and 999999. When the clerk enters an invalid lot number, display a message that echoes the invalid number entered, and a reminder of the value range of numbers for a lot number. You are to print the lot number, assessed value, and property tax. After the program ends, display the total assessed values, and property taxes calculated, and average property tax
Computers and Technology
1 answer:
andre [41]2 years ago
8 0

Answer:

Explanation:

The following code is written in Java. It creates the loop as requested and validates the information provided before continuing, if the information is invalid it prints "Invalid Information to the screen" and asks the user to enter the information again. Finally, outputing all the requested information at the end of the program. The code has been tested and the output can be seen in the attached image below.

import java.util.ArrayList;

import java.util.Arrays;

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int totalValues = 0;

       int totalTaxes = 0;

       int count = 0;

       while(true) {

           int lotNumber, value;

           double tax;

           System.out.println("Would you like to add an Entry: 1=Yes 0=No");

           int answer = in.nextInt();

           if (answer == 1) {

               System.out.println("Please enter lot number: ");

               lotNumber = in.nextInt();

               if ((lotNumber >= 0) && (lotNumber <= 999999)) {

                   System.out.println("Please enter assessed value: ");

                   value = in.nextInt();

                   tax = value * 0.05;

                   System.out.println("Lot Number: " + lotNumber);

                   System.out.println("Property Value: " + value);

                   System.out.println("Property Tax: " + tax);

                   totalTaxes += tax;

                   totalValues += value;

                   count += 1;

               } else {

                   System.out.println("Invalid Lot Number");

               }

           } else {

               break;

           }

       }

       int average = totalTaxes / count;

       System.out.println("Total Property Values: " + totalValues);

       System.out.println("Total Property Taxes: " + totalTaxes);

       System.out.println("Average Property Tax" + average);

   }

}

You might be interested in
what is microprocessor ? Why does a computer need microprocessor? Why does a computer need microprocessor ?​
vesna_86 [32]

Answer:

A microprocessor is a computer processor where the data processing logic and control is included on a single integrated circuit. A computer need microprocessors to perform the functions of a computer's central processing unit.

6 0
1 year ago
Why it's important for designers to consider the environmental impact of a<br> product they design.
Aloiza [94]

Answer:

Kindly check explanation

Explanation:

The environment is our abode which aids the continued survival and growth of plant, animals and humans. The most important components and natural resources which are neceaaaarybto dwell and survive are all waht a makes up an enviromment. The energy derived from the sun aids power generation, plant growthbduring photosynthetic activities which is rewired to produce crops and feed us. The air we breathe are all a part of our enviromment. Therefore, such environment which provides a canvas or platform for our existence must be greatly cared for and no technological innovation, project or design must be allowed to impact negatively on the enviromment. Thus the need for impact assessment of systems in other to ensure that our abode isn't threatened.

4 0
3 years ago
Windows server 2012 r2 supports two types of folder shares. what are those two types?
larisa [96]
<span>Windows server 2012 r2 supports the following two types of folder shares: </span>Network File System and Server Message Blocks. Correct answer: D
Network File System<span> (</span>NFS) is a distributed file system protocol for <span>storing and updating files on a remote computer. </span>
The Server Message Block<span> (SMB) Protocol is a </span>network file sharing protocol.
7 0
3 years ago
1. Which of the following are examples of applied art? Select all that apply. (2 points)
Svetlanka [38]

Answers

1. Examples of applied in the list art are Architecture, Drawing and industrial design.

2. The following can be considered an artist’s media; substrate onto which art is created (ex: canvas, paper) and material with which to create art (ex: paint, clay)

Explanations

Applied art is the application of both artistic and design principles to practice and practical use. This type of art can be fine art and theoretical in practice. Examples of applied art are drawing and painting illustrations, woodblock prints, Print based art, industrial and interior design, architecture, car and toy design, landscaping, tattoos and pottery. An art media is the material used by an artist or designer to create a piece of work.





6 0
3 years ago
Read 2 more answers
It's inventiveness, uncertainty futuristic ideas typically deal with science and technology.what is it?
irina1246 [14]

Answer:

Engineering and Science

Explanation:

3 0
3 years ago
Other questions:
  • What is the most widely used operating system for mobile devices?
    7·1 answer
  • What kind of firewall can block designated types of traffic based on application data contained within packets?
    7·1 answer
  • The computer stores a program while the program is running, as well as the data thatthe program is working with, in _____.
    10·1 answer
  • Describe the series of connections that would be made, equipment and protocol changes, if you connected your laptop to a wireles
    10·1 answer
  • Jason needs to design the colors for a web site that make it easy to read. Which should he consider using?
    9·1 answer
  • Can web sites contain copyright material? <br> Yes <br> No
    10·2 answers
  • The M:N relationship between STUDENT and CLASS must be divided into two 1:M relationships through the use of the ENROLL entity;
    10·2 answers
  • Write a program with a method computeCommission which takes a double that is the salesAmount and returns the commissions for sal
    9·1 answer
  • Write a program in python to make the figure:-
    12·1 answer
  • What was the strategy the company adopted for ERP implementation?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!