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;
}
A) 2.2
B) 2.0
C) 3.1
D) 4.4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q19: What is the advantage of the C++11
Q20: When must we use braces to define
Q21: The stream that is used for output
Q22: Loops are used when we need our
Q23: The integer 0 is considered true.
Q25: Which of the following lines correctly reads
Q26: The braces for a loop define the
Q27: Is << used for input or output?
Q28: What is the correct conditional statement to
Q29: What is the value of x after