I have managed to get the prompt to work, but when i type a number into prompt it displays all outputs on webpage, like nodiscount5%discount etc, could someone please sort my program so it just shows one output, then i can study my errors and learn from it. thankyou.
// A program to tell a customer what volume discount they can expect.
numberOfGiftBoxes = window.prompt
('Please enter now many boxes you are purchasing.', '');
numberOfGiftBoxes = parseFloat(numberOfGiftBoxes);
if (numberOfGiftBoxes <= 3)
if (numberOfGiftBoxes >= 4) ! (numberOfGiftBoxes <= 11)
if (numberOfGiftBoxes >= 12) ! (numberOfGiftBoxes <= 29)
if (numberOfGiftBoxes >=30)
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!