![]() Implement a bulk discount, so that if the customer adds 100 items or more to their cart, they will receive a 5% discount on their total. These discounts should be indicated so the customer can see their savings. If the customer adds all the Blu-Rays to their cart, they will automatically receive a 15% discount on those items only. If a customer adds all the different DVDs to their cart, they will automatically receive a 10% discount on those items only. Good luck, and don't get caught! Stretch Goal 1 Customers should also be able to remove an item from the cart entirely. Customers should be able to change the quantity of each item after it has been added. When you add an item to the shopping cart, the cart should indicate the total number of items and the total cost. Piratical Liz's store will need to stock the following items: The task of building the online store will have to fall to you.īuild a basic web application that implements a shopping cart. You are her only friend except for a crab named Gerald, and Gerald's strong sense of ethics has prevented him from taking part in this tomfoolery. She needs to build an online store to sell the dodgy movies. Your friend Piratical Liz, who has a boat off the coast in international waters, thinks she can undersell the distributor with cheap knock-off discs. The original Star Wars movies have been re-released on DVD and Blu-Ray. You can use HTML5 geolocation and localStorage to help in your task. Your wi-fi will be spotty in the zeppelin, so you will need to ensure the history table is viewable offline as you marvel at your record-setting speed. Record the timezone when you start and stop the watch, and correctly display the elapsed time. Your journey may be a long one, and you may pass more than one timezone. When you stop the stopwatch, the application will record the time, latitude, and longitude, as well as the amount of time that has elapsed.Īdd a reset button that clears the time entry history table. ![]() Each time you start the stopwatch, the application inserts a new row into the history table that records the start time, and the current latitude and longitude. In order to verify your time at each leg of the race, you will need to create a stopwatch web application consisting of a start/stop button and a history table. Professor Higginbotham has challenged you to a race around the world in a steam-powered zeppelin of your own invention.
0 Comments
Leave a Reply. |