Write an if-else statement to compute the amount of shipping due on an online sale.
If the cost of
the purchase is less than $20, the shipping cost is $5.99. If the cost of the purchase over $20 and at
most $65, the shipping cost is $10.99. If the cost of the purchase is over $65, the shipping cost is
$15.99.
```
if(costOfPurchase < 20)
shippingCost = 5.99;
else if((costOfPurchase > 20)&&(costOfPurchase <= 65))
shippingCost = 10.99;
else
shippingCost = 15.99;
```
You might also like to view...
How can you use Lightroom for tethered shooting with a camera that is not supported?
What will be an ideal response?
Describe the Open Shortest Path First (OSPF) protocol.
What will be an ideal response?
?Web-based systems are popular because they offer ease of access, cost-effectiveness, and worldwide connectivity.
Answer the following statement true (T) or false (F)
Each time you add a new jQuery Mobile feature to your mobile site, you must also manually add a new div and data attribute for the widget.
Answer the following statement true (T) or false (F)