Examlex

Solved

Suppose You Want to Write an If Statement with Multiple

question 65

Multiple Choice

Suppose you want to write an if statement with multiple alternatives to print out the single tax bracket that someone is in, based on their income. Assume the integer variable income holds the annual income. What is wrong with the following if statement?
If (income < 10000)
{
System.out.println("Lowest tax bracket") ;
}
7if (income < 20000)
{
System.out.println("Low-Middle tax bracket") ;
}
If (income < 30000)
{
System.out.println("Middle tax bracket") ;
}
System.out.println("High tax bracket") ;


Definitions:

Poverty Definition

The state of being extremely poor, or the condition of those lacking sufficient money or material possessions for their needs.

Educational Attainment

Refers to the highest level of education an individual has completed.

Health Coverage

Insurance that typically pays for medical, surgical, prescription drug, and sometimes dental expenses incurred by the insured.

Poverty

The state of having insufficient financial resources to meet basic living expenses such as food, clothing, and shelter.

Related Questions