Question: 2. After your wrote the program, answer the following questions. 2a. How would you verify the user input, married or single, nothing else? Explain. 2b.

2. After your wrote the program, answer the following questions.

2a. How would you verify the user input, married or single, nothing else?

Explain.

2b. Would you allow an Income input less than 0?

Explain how you would design your program to disallow the user to input a negative Income value?

2c. Would you allow Income input as a floating point number?

Explain how you would declare income variables.

2d. Would you allow Calculating the total tax as a floating-point number?

Explain how you would calculate the total tax.

2e. For the output you provided, why (or why not) do you think Abi will be satisfied? Does it display what Abi input (e.g. income and marital status)? See the sample run below and compare to yours. What do you think Abi would be comfortable with and explain why? [This is part of the scoring rubric]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!