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:

Voluntarily

Acting based on one's own free will or choice, rather than due to pressure or obligation.

Third Party

An entity (individual or group) involved in a situation or transaction but not one of the principal actors.

Conflict

A situation or period in which there is a serious disagreement or argument, often a prolonged one, between two or more parties.

Problem Solving

The process of identifying a problem, generating possible solutions, and implementing an action to achieve a desired goal.

Related Questions