If the number of items bought is less than 5, then the shipping charges are $7.00 for each item bought; if the number of items bought is at least 5, but less than 10, then the shipping charges are $3.00 for each item bought; if the number of items bought is at least 10, there are no shipping charges. Correct the following code so that it computes the correct shipping charges. (3, 5, 6)
if (numOfItemsBought > 10) shippingCharges = 0.0;
else if (5 <= numofitemsbought=”” ||=”” numofitemsbought=””><= 10); =”” shippingcharges=”3.00″ *=”” numofitemsbought;=””>
else if (0 < numofitemsbought=”” ||=”” numofitemsbought=””>< 5) =”” shippingcharges=”7.00″ *=””>