0
How to get 3 possible outcome
I have an assignment where I need to have a program tell me the tax based on my income. There is 2 different income levels and if you have an income above both you add the taxes together on your income minus a fixed sum as correction. Now how would I type a program that tells me the tax based on my income relative to two income levels with tax…. Do you guys understand? Am I to vague?
3 Respuestas
+ 2
Adam Qvist
There is a code coach challenge called BMI, which deals with a similar concept.
There are many codes & questions about BMI you could research on Sololearn to get an idea of the concept
+ 5
I'm not completely sure what you're trying to do, but it sounds like something that could be done using if, else if, and else statements.
+ 4
You can use if-else statements or switch. It will be explained in the sololearn Java course