Examlex

Solved

Given the Following Code Fragment and the Input Value of 2.0

question 24

Multiple Choice

Given the following code fragment and the input value of 2.0, what output is generated?
Float tax;
Float total;
Cout << "enter the cost of the item\n";
Cin >> total;
If total >= 3.0)
{
Tax = 0.10;
Cout << total + total * tax) << endl;
}
Else
{
Cout << total << endl;
}


Definitions:

Disposable Income

The amount of money available for savings or expenditure after all taxes and social security fees have been deducted.

Induced Consumption

Consumption that changes in response to changes in income or wealth, as opposed to autonomous consumption, which does not change when income changes.

Disposable Income

The amount of money that households have available for spending and saving after income taxes have been deducted.

Average Propensity

The average tendency of an entity (such as a household) to spend a portion of income; can pertain to consumption or saving.

Related Questions