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;
}
A) 3
B) 3.3
C) 4.0
D) 4.4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: What is the value of x after
Q38: Write the loop condition to continue a
Q39: int myValue; is called a _.
Q40: What is the value of x after
Q41: What is the correct way to write
Q42: Each time a loop body executes is
Q44: Executing one or more statements one or
Q45: In the following code fragment, x has
Q46: What is the output of the following
Q48: What is the value of x after