The Solutions Project
Click here for ->>>>> Project Rubric
Starter file found here
Write up (File -> Save As...)
Day 1
Part 1: Displaying your inventory (ItemScreen):
Create your "inventory" and store it in parallel lists
Day 2
Make these items show up on a screen
Day 3
Shopping Cart Screen
Day 4
Shopping Cart and Check Out:
How to round to two decimal places:
var total = 54.575394871928347091837;
total.toFixed(2);
----------------------------------------------------
Day 5:
By this time, you should be able to add items to the shopping cart, have it print out a proper subtotal, and be able to show the check out screen.
Check out screen
Starter file found here
Write up (File -> Save As...)
Day 1
Part 1: Displaying your inventory (ItemScreen):
Create your "inventory" and store it in parallel lists
- What will you sell? How much will it cost? Add a corresponding image found online. All this info should go into separate parallel lists
- You should have a name of your item, a price, and an image diplayed for each item. This screen should also have previous and next buttons that allow you to go through all items.
Day 2
Make these items show up on a screen
- Create an update screen function that displays the items from the inventory lists onto the ItemScreen
- Add buttons that allow the user to move left and right through the list. Create events for these to switch between items.
- Make it so that when the user presses the "Add to Cart" button, the item and its cost add to the list
Day 3
Shopping Cart Screen
- Set up your shopping cart screen
- Create a function that figures out a subtotal for your cart
Day 4
Shopping Cart and Check Out:
- Make sure all items and prices are properly printed to the shopping cart screen, as well as a correct subtotal
- Calculate the tax and final total
How to round to two decimal places:
var total = 54.575394871928347091837;
total.toFixed(2);
----------------------------------------------------
Day 5:
By this time, you should be able to add items to the shopping cart, have it print out a proper subtotal, and be able to show the check out screen.
Check out screen
- Calculate the tax and final total. Both pst, gst, and final total should be displayed on this screen
- Take in a credit card number. At the very least, check to see if this is a number. Extra marks to those who check to see if it is 16 digits!
- Have a confirmed screen show up when the user has successfully
- Add buttons that allow you to go back and forth between screens (ie. "Back to Shop" or "Back to cart" where it makes sense!