Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions