Okay, guys, I know this one will be very hard however while trying to finish this assignment I got overwhelmed and lost by the sheer 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!

Answers

Answer 1
Enter your information ℹ️
Answer 2

TaxReturn.java: Pt. 3

// Write your code here

}

public void display() {

System.out.println("Taxpayer ssn: " + ssn + " " + first + " " + last + "\n" +

address + "\n" + city + ", " + state + " " + zipCode +

"\n Marital status: " + status + "\n" +

"Income: $" + income + " Tax: $" + tax);

What is program?

A computer can run multiple programs simultaneously, and each program can be in a different state. There are three states a program can be in: running, blocked, and ready. If a program is running, it means that it is currently using the computer's resources, such as the processor, memory, and I/O devices, to perform its tasks.

On the other hand, if a program is blocked, it means that it is waiting for a resource to become available, such as a file, network connection, or input from the user. In the scenario you mentioned, "Program A" is in the running state, meaning it is actively using the computer's resources.

Therefore, Program B" is in the blocked state, meaning it is waiting for a resource to become available so it can continue to run.

Learn more about program on:

brainly.com/question/30613605

#SPJ3


Related Questions

who established computer​

Answers

Answer:

Charles Babbage

Explanation:

I studied abt him

Write an application program in C++ to implement a class Fibonacci to print Fibonacci series upto N using member function series() .

Answers

Answer:

Program approach:-

Using the header file.Using the standard namespace I/O.Define the main function.Display the number of terms.Display the Fibonacci series.Print the first two numbers.

Explanation:

Program:-

//header file

#include <iostream>

//using namespace

using namespace std;

//main function

int main() {

   int n, s1 = 0, s2 = 1, nextTerm = 0;

//display the number of terms

   cout << "Enter the number of terms: ";

   cin >> n;

//display the Fibonacci series

   cout << "Fibonacci Series: ";

   for (int j = 1; j <= n; ++j) {

       // Prints the first two terms.

       if(j == 1) {

           cout << s1 << ", ";

           continue;

       }

       if(j == 2) {

           cout << s2 << ", ";

           continue;

       }

       nextTerm = s1 + s2;

       s1 = s2;

       s2 = nextTerm;

       

       cout << nextTerm << ", ";

   }

What does GUI stands for and what is it function?​

Answers

Answer:

A GUI (graphical user interface) is a system of interactive visual components for computer software. A GUI displays objects that convey information, and represent actions that can be taken by the user. The objects change color, size, or visibility when the user interacts with them.

Answer:

[tex]\huge\boxed{Answer\hookleftarrow}[/tex]

GUI stands for Graphical User Interface.

It's main functions are to :-

present data files & apps in a graphical format (icons) .

GUI is easy to use & enables you to easily exchange information between software using cut and paste or 'drag and drop'.

ʰᵒᵖᵉ ⁱᵗ ʰᵉˡᵖˢ

# ꧁❣ RainbowSalt2²2² ࿐

The database of viruses that an antivirus software scans for is called​

Answers

Answer:

The anti virus scanner is the answer.

Select three advantages of cloud computing.

A) large amount of storage capacity

B) no Internet access required

C) great flexibility

D) enhanced security

E) easily managed

Answers

Answer:

easily managed, large amount of storage capacity, great flexibility

Explanation:

list the importance and impacts of computer in our life . please help me ​

Answers

Answer:

- It has greatly helped our work efficiency

- It makes the work easier and more convenient

- Communication is also made possible through computers

which key helps us exit from the current window​

Answers

Answer:

Control + F4 : it closes the current window

Telemedicine is the use of medical information exchanged from one site
to another via:
A.Written communication
B.Verbal communication
C.Print communication
D.Electronic communication

Answers

Answer:

D. Electronic communication

Explanation:

Telemedicine is the term given to the method of distributing the services and information related to the health through the means of electronic communication. This practice helps patients in the remote areas or geographically far areas to reach to the medical sources. The patients can get assistance and in touch with the doctors through video-conferencing or telephonic means.

Which is an example of a crime that might occur in an e-commerce transaction?
A customer’s new purchase is stolen after delivery.
A customer’s credit card information is stolen and used by someone else.
A customer can easily take merchandise without having to pay for it.
A customer pays an unfair price for the merchandise she bought.

Answers

Answer:

A costumers credit card information is stolen and used by someone else.

Answer:

A customer's credit card information is stolen and used by someone else.

Explanation:

Since e-commerce is online sales, the customer can not take merchandise without having to pay for it.

Also the customer can search for the best price.

Please Helppp!!!! What type of lighting works best in the morning and at dusk?

__________ gets its light from the sun or moon and is best for photographs that photographers take in the morning or at dusk.

(I already tried natural because it was in the lesson and it said it was wrong)

Answers

Answer:

solar light

Explanation:

This is because at this time, the sun is in the right place to illuminate the scene from the right angles, without overpowering the photograph. Light is one of the most important factors to take into account when taking a photograph.

A spreadsheet contains the maximum weight and maximum height for fifty dog breeds. The breeds are located in rows, and the weights and heights are listed in columns. Emily needs to determine the maximum weight of the dog breed in row 43. Which tool could she use to quickly navigate to the information?

Answers

Answer:

a. Locate

Explanation:

Question options (obtained on the net):

a. Locate

b. Sort

c. Filter

d. Replace

Explanation:

The largest value of the weights of the dog breed in row 43 is the maximum weight of the dog breed in the row

The 'MAX' formula or the 'Autosum' tool can be used to give the largest value in a row, or column

To locate the maximum value in MS Excel, the ADDRESS and MATCH and MAX functions are combined and entered into the blank cell on the right, specifying the same range for the MAX and MATCH functions, and a '0' for the MATCH function as well as a '1' for the ADDRESS function as follows;

=ADDRESS(MATCH(MAX(A1:E1), A1:E1, 0), 1)

Therefore, to navigate to the maximum weight, Emily should use a locate(ing) tool navigate to the information on the spread sheet

Answer:

A. Locate

Explanation:

E2020!

In which generation microprocessor was developed short answer of computer science​

Answers

Explanation:

in fourth generation microprocessor was developed.

may it helped u

no spamming or links
A function is a reusable piece of code that accomplishes a task.
true or false

Answers

I think the answer is true,
The answer is true. They are, indeed, reusable and complete tasks you assign them.

Which of these is a Boolean operator?
A. OR
B. YES
C. NO
D. CANCEL

Answers

Answer:

the answer would be A.OR

Explanation:

boolean operator examples are OR,AND NOT,NOT,AND

Answer:

A

Explanation:

it is what it is

help,these are true and false and tick and cross ​

Answers

Answer:

1.

a.true

b.false

2a internal

Explanation:

hope it helps you

Given a string, an integer position, and a character, all on separate lines, find the character of the string in that position and replace it with the character read. Then, output the result.

Ex: If the input is:

warn

0

e

the output is:

earn

Note: Using a pre-defined string function, the solution can be just one line of code.​

Answers

Answer:

The program in Python is as follows:

myStr = input()

pos = int(input())

chrr = input()

myList=[]

myList[:0]=myStr

myList[pos] = chrr

myStr =""

for i in myList:

   myStr+=i

print(myStr)

Explanation:

This gets input for the string

myStr = input()

This gets input for the character position

pos = int(input())

This gets input for the incoming character

chrr = input()

Create an empty list

myList=[]

Convert the string to a list

myList[:0]=myStr

Replace the character

myList[pos] = chrr

Empty the string

myStr =""

Get the new string

for i in myList:

   myStr+=i

Print the new string

print(myStr)

Following are the C++ program to replace the first index value of the string.

Program Explanation:

Defining header file.Defining the main method.Inside the main method three variable "Sval, Spos, Subchar" is declared in which "string, int, and char".After input variable value a string variable is declared with the at (method), which replaces the first index value with the character value.After replacing the first index value that is "0" use the prints method that prints its value.

Program:

#include <iostream>//header file

#include <string>//header file

using namespace std;

int main() //main method

{

 string Sval;//defining string variable

 int Spos;//defining integer variable

 char Subchar;//defining char variable

 cin>>Sval>>Spos>> Schar;//input value

 Sval.at(Spos)  =  Subchar; //using string variable that replaces the first index value with the character value

 cout << Sval << endl;//printing the replaced value

 return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/24494143

You have typed the characters 3rd. Which of the following formatting features should be used to format the 'rd'?

1. superscript
2. Highlight
3. Sub script
4. Italics

Answers

Answer:

1. Superscript

3rd written as 3ʳᵈ

Explanation:

A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above it.

Select the text or number you want.

Steps to apply superscript

1. Select the text or number you want

2. Go to Home and select Superscript X²

3rd written as 3ʳᵈ

The same rule applies to

9th written as 9ᵗʰ

Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page.
A.Occupational Outlook Handbook. "How to Become a Dentist." Bureau of Labor Statistics and US Department of Labor, 2012.
B."Occupational Outlook Handbook." How to Become a Dentist. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.
C."How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.
D.How to Become a Dentist, Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 2012. Web. 1 May 2013.

Answers

Answer:

C."How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.

Explanation:

When citing an online publication without a known author, the title of the article is first stated and encapsulated in italics. This is then followed by the name of the website or book. The organization responsible for the write-up is indicated. A comma separates the name of the organization and the date when the article was written. 'Web' is written to show that the material was obtained online. Finally, the date that tells when the article was retrieved is noted.

This guideline applies to both the Modern Language Association and the American Psychological Association citation styles.

Answer:

Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page. awser:C Explanation: How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.

Q4. What is one of the benefits of using a library in a program?

Answers

Answer:

Simplifies creating a complex program

Explanation:

A professional-looking portfolio gives a clear message. What does it convey?
Ο Α. .
that you like to build up a sales pitch
OB. that you like to flaunt your work
OC. that you are serious about your work
OD.
that you put on a show for effect
Ο Ε.
that you only care about appearances
Reset
Next

Answers

Answer:a

Explanation:

A professional-looking portfolio gives a clear message that you put on a show for effect. Thus, the correct option is D). that you put on a show for effect.

What is a professional portfolio?

Professional portfolio refers to the collection of work and other documents that make clear the abilities of the candidate to the potential employers.  It can be created in both digital and physical format.

A portfolio is an collected album of all work samples and professional documentation that provides proof about the accomplishments, skills, potential and samples of an individual's work.  

In order to give portfolio a professional look, there are several categories to be consider such as Personal Information, Values, Personal Goals and History, Accomplishments and Job History, Skills and Attributes, Education and Training as well.

Learn more about professional portfolio here:-

https://brainly.com/question/20411709

#SPJ2

Which statement best describes an advantage of using the Subtotal dialog box?

Only one function, Add, can be used to combine data quickly.
Data from multiple workbooks can be combined in a single step.
An option is available that can customize any function available in Excel.
Data can be summarized using a single step rather than by writing multiple formulas.

Answers

Answer: Data from multiple workbooks can be combined in a single step.

Explanation:

The Subtotal command allows the creation of groups automatically and common functions such as COUNT, SUM, and AVERAGE are used in the summarizing of data.

An advantage of using the Subtotal dialog box is that data from multiple workbooks can be combined in a single step. Therefore, the correct option is B.

Um sistema resistivo opera com resistência total de 10K ohms,em uma rede elétrica com tensão de 380V.Qual a intensidade da corrente que passa pelo sistema resistivo?

Answers

Answer:11

Explanation:

.

What is the correct representation for ternary form?
A. A.A-B B.A-B-A C. A-B-A-C-A D. A-A-A

Answers

Answer:

C.) A B A

Explanation:

Ternary form, sometimes called song form, is a three-part musical form consisting of an opening section (A), a following section (B) and then a repetition of the first section (A).

consider the following scenario. which portion of a motherboards chipset is most likely to he causing the problem and why? a user reports that her or his mouse is not responding. trying a different mouse foes not fix the problem

Answers

Answer:

Explanation:

Need full question.

Explain what PowerGaming in FiveM

Answers

powergaming is a style of interacting with games or game-like systems,particularly video games,and role playing games with the aim of maximizing progress towards a specific goal.

Some help me with this I’ll mark brainleist

Answers

Answer:

made by apple - final cut studio

sound editing software compatible with both windows and mac - audacity

simple too - garage band

Explanation:

1. Final 2. Audacity 3. Garage band

causes of metallic salt​

Answers

They are made from compounds in the combustion product gases are chlorine, sulfur dioxide, and carbon dioxide. Usually for hair dye!

Why does brainly always say, "We're sorry, but we are not able to complete your registration at this time"?! Now I cant view any answers to any questions!

Answers

Answer and Explanation:

It's very likely a network issue. You could do a hard refresh on your browser or brainly app. Simply clear your application's cache or your browser data or cache and then try again. You could also try re-installing your app. If this doesn't work, please reach out to the Brainly customer support team for help.

Select the four bad password ideas.

A) lists of numbers in order, such as 1234

B) your name or your child's name

C) the word "password"

D) an inside joke you have with yourself

E) the name of the website

F) strings of random numbers

Answers

Answer:

the word "password", the name of the website, lists of numbers in order, such as 1234, your name or your child's name

Answer:

A,C,E,B

Explanation:

The kinetoscope is ___________________ a. a disk with a series of drawings around the edge, showing the same object in slightly different poses. b. a standard communications protocol used to connect computer networks around the world. c. a device that creates the illusion of movement and was the forerunner to the modern projector. d. a portable device for recording audio and video.

Answers

Answer: the answer is c

Answer:

C

Explanation:

Other Questions
help me with this question Will give brainliest!!!What are the steps film makers use in storyboarding? Solve for x in the equation x squared + 14 x + 17 = negative 96. Which expression is equivalent to the given expression?4 ln x+ In 3 In xA. In(3x+3)B. In(x^4 - x+3)C. In(3x^3)D. In(11x) The electronegativities of carbon and sulfur are almost the same. Both elements form covalently bonded compounds with hydrogen. Why is hydrogen sulfide a polar compound while methane is a nonpolar compound?a.Sulfur has a stronger attraction for electrons than does carbonb.A hydrogen sulfide molecule has lone pairs of electronsc.Sulfur forms ionic bonds with hydrogen while carbon forms covalent bondsd.Sulfur ions are larger than carbon ions which of the following is incorrect for nuclear forcesa) they are attractive in natureb) they are short range forcesc) they obey inverse square lawd) they are non conservative in nature Explain your understanding of functional group in organic chemistry BlueA bowl contains: 3 red erasers 4 blue erasers.6 green erasers 7 pink erasersAn eraser will be drawn fromthe bowl and replaced 50 times.What is a reasonable predictionfor the number of times a greeneraser will be drawn? Whoever answers correctly will be marked brainliest Which sentences use quotation marks correctly? (Multiple Answers)Select one or more:a. The newspaper article said, "The company is doing exceptionally well considering therecession."b. John shouted, "Get out of my office!"C. "Sally told me, "Ryan is leaving at the end of the month."d. The manager said "We didn't meet our target;" it looks like we'll have to work overtime.e. The seminar discussed the "glass ceiling" in the business environment.f. Pete gave some sound advice when he said, "Don't ever assume anything." Rounding in the calculation of monthly interest rates is discouraged. Such rounding can lead to answers different from those presented here. For long-term loans, the differences may be pronounced.To buy a car, you borrow $28,000 with a term of five years at an APR of 5%. What is your monthly payment? (Round your answer to the nearest cent.)$ How much total interest is paid? (Round your answer to the nearest cent.)$ Find the value. Need help on these questions ASAP what are Manuscript signs The distance between two points is 5. The coordinates of the points are:(2, 1) and (x, 5). There are 2 possible values for x. Find these values.The smaller value of x = ?The larger value of x = ? How social media affects young persons safety please do as the photo instructs Use a double integral to find the area of the following regions. The region bounded by all leaves of the rose r=2cos3 -20w^3+11w^3Helppppp Main way that business leaders helped the war effort during wwII What is domain restrictions and what causes them? Which number is rational?