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?

6th Feb 2022, 9:24 PM
Adam Qvist
Adam Qvist - avatar
3 odpowiedzi
+ 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
6th Feb 2022, 9:39 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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.
6th Feb 2022, 9:27 PM
Simon Sauter
Simon Sauter - avatar
+ 4
You can use if-else statements or switch. It will be explained in the sololearn Java course
6th Feb 2022, 9:27 PM
Lisa
Lisa - avatar