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...
An administrator checks a server running a RAID 1 with ten drives and notices three drives have blinking amber lights. Which of the following is the FIRST action the administrator should take?
A. Reseat the drives one at a time B. Inform the users the server is down C. Shut down the server and replace the drives D. Call support and open a case
Which of the following is not valid DNS server management task that can be performed using IPAM?
A. Create a conditional forwarder B. Create a DNS zone C. Create a DNS Scope D. Launch the DNS MMC for a selected server