Given the following code fragment and the input value of 4.0, what output is generated?
double tax;
double total;
System.out.print("Enter the cost of the item");
total = scan.nextDouble();
if ( total >= 3.0)
{

tax = 0.10;
System.out.println(total + (total * tax));
}
else
{
System.out.println(total);
}
(a)5
(b)4
(c)4.4
(d) 3