Design and build a shopping cart that can calculate the results of an order. Use the provided menu.json and location.json to construct an interface that allows a user to select items to order and then submit that order. You will need to display all taxes and surcharges in a summary.
- Selecting from a list of items based on the menu.json and location.json a. A menu selection should include an image for the item, the name of the item and the price.
- A user should be able to specify the quantity of an item before it is added to the cart.
- The Summary of the order should include: the name of the item, the quantity chosen for that item, a subtotal, each additional charge (tax, surcharge) should be listed out seperately and the sum should be calculated at the very bottom. a. The order of calculation of the total should be: subtotal of items, then taxes and finally surcharge.
2 x Nachos @ $price
1 x Water @ $price
--------------------
$subtotal Subtotal
$sales_tax Sales Tax
$local_tax Local Tax
$surcharge Surcharge
--------------------
$total Total
Assume that you are going to POST the results to an endpoint. Log out via the console what you would POST to a fake /orders endpoint
- You can use any framework or build process that you desire
Contact the proctor of your test if you have any questions or feedback about this challenge.