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

b. 2.0

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a wired or wireless WAN network connection point that enables users to access the WAN.

a. IP address b. POP c. TCP/IP d. IP

Computer Science & Information Technology

Apply color to mesh patches to make broad color adjustments to an object.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology