Examlex

Solved

Given the Following Code Fragment and the Input Value of 4.0

question 43

Multiple Choice

Given the following code fragment and the input value of 4.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:

Solve

The process of finding an answer or explanation for a problem or question.

Drapery Store

A retail establishment that specializes in selling cloth and other materials for windows and home decoration.

Gold Fabric

A material made using gold threads, often used in luxury textiles or high-end fashion.

Markup

The difference between the selling price and the unit cost of an item of merchandise. (Also called gross profit.)

Related Questions