Question: Hi Im a beginner java user and I have to compute a program that give you married status. -it must be case insensitive meaning that

Hi Im a beginner java user and I have to compute a program that give you married status.
-it must be case insensitive meaning that if I put single or siNGLE it would still give me the same thing. I remember the professor talking something about character or even maybe switch and break method.
-all the highlighetd yellow and red must be made in final double constants
-if you can use if and else statements nothing to fancy because Im new to coding
- when printing it out must use %f show the decimal for two spaces and a coma
PLEASE NOTHING TO ADVANCE Ill comment on whatever I havent learn and see if it can be switched.
 Hi Im a beginner java user and I have to compute
a program that give you married status. -it must be case insensitive

Write a program that takes as input the marital status ("single" or "married", case insensitive) and the taxable income (double), and computes taxes for the following schedule. If your status is Single and But not The tax isOf the if the taxable income is over over S0 $8,000 $32,000 If your status is Married and But not The tax is of the if the taxable income is over over amount over $0 $8,000 $32,000 8, 000 32,000$800+ $4,400+ amount over $0 $0 $16, 000 $64, 000 $16, 000 $64, 000 $1,600+ $8,800+ 16,000 $64, 000 For example, if David is single and his taxable income is $10,000, then his income tax will be $800 + 15% of ($10,000-$8,000)-$1,100 The following are examples of the required /O behavior, where the user's input is shown in bold. fcsang@fluffy ~/cs140/project $ java Tax Enter your marital status (single or married): sinGLE Enter your taxable income: 10000 Your income tax is $1,100.00 Write a program that takes as input the marital status ("single" or "married", case insensitive) and the taxable income (double), and computes taxes for the following schedule. If your status is Single and But not The tax isOf the if the taxable income is over over S0 $8,000 $32,000 If your status is Married and But not The tax is of the if the taxable income is over over amount over $0 $8,000 $32,000 8, 000 32,000$800+ $4,400+ amount over $0 $0 $16, 000 $64, 000 $16, 000 $64, 000 $1,600+ $8,800+ 16,000 $64, 000 For example, if David is single and his taxable income is $10,000, then his income tax will be $800 + 15% of ($10,000-$8,000)-$1,100 The following are examples of the required /O behavior, where the user's input is shown in bold. fcsang@fluffy ~/cs140/project $ java Tax Enter your marital status (single or married): sinGLE Enter your taxable income: 10000 Your income tax is $1,100.00

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!