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
madreJ [45]
3 years ago
9

Okay, guys, I know this one will be very hard however while trying to finish this assignment I got overwhelmed and lost by the s

heer size of it! Alrighty! Here are the instructions:
/////////////////////////////////////////////////////////////
Modify the TaxReturn class with fields that hold a taxpayer’s Social Security number (snn), last name (last), first name (first), street address (address), city (city), state (state), zip code (zipCode), annual income (income), marital status (status), and tax liability (tax). Include a constructor that requires arguments that provide values for all the fields other than the tax liability. The constructor calculates the tax liability based on annual income and the percentages in the following table.

Income Single Married
0 - 20,000 15% 14%
20,001 - 50,000 22% 20%
50,001+ 30% 28%

In the TaxReturn class, also include a display method that displays all the TaxReturn data.

Implement the PrepareTax application that prompts a user for the data needed to create a TaxReturn. Continue to prompt the user for data as long as any of the following are true:

• The Social Security number is not in the correct format, with digits and dashes in the appropriate positions—for example, 999-99-9999.

• The zip code is not five digits.

• The marital status does not begin with one of the following: S, s, M, or m.

• The annual income is negative.

After all the input data is correct, create a TaxReturn object and then display its values.

An example of the program is shown below:

Enter your Social Security number
999-99-9999
Enter your first name
Jane
Enter your last name
Doe
Enter your address
1961 Mulberry Street
Enter your city
Springfield
Enter your state
Massachusetts
Enter your Zip code
01101
Enter marital status
Single
Enter your annual income
20000
Taxpayer ssn: 999-99-9999 Jane Doe
1961 Mulberry Street
Springfield, Massachusetts 01101
Marital status: S
Income: $20000.0 Tax: $3000.0
////////////////////////////////////////////////////////////////
I also want to point out that this assignment has two different files with one being PrepareTax.java and the other being ReturnTax.java!
Computers and Technology
1 answer:
andriy [413]3 years ago
6 0
Enter your information ℹ️
You might be interested in
In addition to assessing whether each of your independent variables has an effect on the dependent variable, a factorial ANOVA a
Olegator [25]

Answer:

C) determine whether the effects of one factor depend on the other factor.

Explanation:

ANOVA is analysis of variance which helps to understand whether the population mean are equal or not. It is statistical model which is used by the businessmen to analyze their business performance. ANOVA also determines whether the effect of one factor are related or dependent on other factor.

8 0
3 years ago
Suppose we have two threads inserting keys using insert() at the same time. 1. (5 points) Describe the exact sequence of events
Leona [35]

Answer:

Say you have a key in a dictionary, or a key in a 2-d list. When you insert(), you are destructively iterating the original list and modifying it to reflect the insert() component. In order for the key to get lost you would have to do say insert(len: :1) which would remove the second key and therefore cause it to get "lost" because it will be destructivsly removed from its assignment and replaced by whatever you choose to insert.

Rate positively and give brainlist

8 0
3 years ago
What are three good things and three bad things about the metal pewter
Setler79 [48]
Good things:
It is a solid material,NOT plated which makes it easily engravable.
does not tarnish or
discolor easily

Bad things:
It is not a high quality metal
It will melt at low temperatures,so do not get it around extreme heat.
It can damage easy if exposed to acids like lemon juice or vinager


4 0
4 years ago
6
Lisa [10]

Answer C in the paragraph group on the home tab

8 0
3 years ago
The set of instructions given to a computer is called _____________________.
adell [148]

Answer:  c) a program.

Explanation:

A computer, is a hardware device, that differs from those with dedicated hardware (like a TV set, a radio, or an old phone) , in that it can be used for different purposes, due to it's a programmable device.

The way in which the computer is instructed to do anything, is by means of a set of instructions to  be read and executed sequentially, which is called a program.

The set of the different programs stored in the computer is which is known as the computer software.

4 0
3 years ago
Other questions:
  • Which of the following is not a standard method called as partof the JSP life cycle?
    5·1 answer
  • An internet service provider has three different subscription packages for its customers.  Package A: For $9.95 per month 10 ho
    10·1 answer
  • The refresh or reload button is in the browser toolbar and usually looks like a pair of curved arrows. Clicking it will ________
    14·2 answers
  • Ethernet is a standard for a) LAN b) MAN c) WAN d) All of the above
    14·2 answers
  • Given the following code fragment and the input value of 4.0, what output is generated?
    8·1 answer
  • Which of the following solutions enables simultaneous digital transmission of voice, video, data, and other network services ove
    7·1 answer
  • Raj needs to apply sorting to a current list in his Word document.
    9·2 answers
  • What are the two main parts to a VR experience.
    12·1 answer
  • Project: Design and Development Research Project
    14·1 answer
  • Select the correct text in the passage.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!