If a variable named $ticketsOrdered contain the value 50, and $maximumOrder contains the value 25, what is stored in $totalCost after this code is processed?
If a variable named $carsSold contains the value 8, What is stored in $bonus after this code is processed?
if ($ticketsOrdered > $maximumOrder)
$ticketsOrdered = $maximumOrder;
if ($ticketsOrdered >= 10)
$totalCost = $ticketsOrdered * 4.00;
else
$totalCost = $ticketsOrdered * 5.00;
a. 0.00
b. 100.00
c. 125.00
d. 200.00
e. 250.00
which one is the answer? why? can someone please explain this to me? thank!!
If a variable named $carsSold contains the value 8, What is stored in $bonus after this code is processed?
if ($ticketsOrdered > $maximumOrder)
$ticketsOrdered = $maximumOrder;
if ($ticketsOrdered >= 10)
$totalCost = $ticketsOrdered * 4.00;
else
$totalCost = $ticketsOrdered * 5.00;
a. 0.00
b. 100.00
c. 125.00
d. 200.00
e. 250.00
which one is the answer? why? can someone please explain this to me? thank!!