The shipping charges

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″ *=””>

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X