Answered step by step
Verified Expert Solution
Question
1 Approved Answer
## Scenario: Food Intelligence ( FI ) currently sells desserts to the public. However, potential FI customers can't see any desserts information ( e .
## Scenario:
Food Intelligence FI currently sells desserts to the public. However, potential FI customers can't see any desserts information eg name, price, description, flavors nor can they see the total price of desserts in their shopping carts. Ideally, customers can benefit from seeing the entire dessert menu printed with names, descriptions, and individual prices. Customers can benefit from seeing the total price of items in their cart printed, excluding tax. Food Intelligence would like the solution to match standard javascript styling eg use lint commands to stylefix your code
## Instructions:
Using the dessert information below and computational thinking, develop algorithms which can be encoded and run as standard JavaScript code in the indexjs file and fulfills the following desirable results:
Create a manageable list of desserts which includes the name, description, flavors, and price of each dessert
Print the name, description, and price of all three dessert options in the list of desserts
Calculate and print the total price of a cart based on the quantities of each dessert. While the two carts listed below are specific cases, the solution should work for any quantity of any dessert.
### Cart
Quantity Cookies & Cream Hero Cake
Quantity Strawberry Covered Chocolate Cake
Quantity Bundtini
### Cart
Quantity Cookies & Cream Hero Cake
Quantity Strawberry Covered Chocolate Cake
Quantity Bundtini
### Desserts
Cookies & Cream Hero Cake
Three layers of chocolate and three layers of vanilla cake filled with cookies and cream mousse and iced with alternating stripes of mousse and buttercream. Coated with chocolate ganache and then garnished with sandwich cookies, chocolate bars, and chocolate pieces.
$
Strawberry Covered Chocolate Cake
Six layer of chocolate cake filled with ganache then iced in strawberry buttercream. Garnished with ganache, chocolate dipped strawberries, fudge icing, chocolate pieces, and macarons.
$
Bundtini
Miniature Bundtlets are individually packaged and come in a variety of flavors, including our seasonal Featured Flavor.
Flavors: Carrot,Chocolate Chip,Classic Vanilla,Confetti,Lemon,Marble,Pecan Praline,Red Velvet,Pumpkin Spice,White Chocolate Raspberry
$
Example of desired results:
FOOD INTELLIGENCE ITEM LIST
name: Cookies & Cream Hero Cake
description: Three layers of chocolate and three layers of vanilla cake filled with cookies and cream mousse and iced with alternating stripes of mousse and buttercream. Coated with chocolate ganache and then garnished with sandwich cookies, chocolate bars, and chocolate pieces.
price: $
name: Strawberry Covered Chocolate Cake
description: Six layer of chocolate cake filled with ganache then iced in strawberry buttercream. Garnished with ganache, chocolate dipped strawberries, fudge icing, chocolate pieces, and macarons.
price: $
name: Bundtini
description: Miniature Bundtlets are individually packaged and come in a variety of flavors, including our seasonal Featured Flavor.
price: $
flavors: Carrot,Chocolate Chip,Classic Vanilla,Confetti,Lemon,Marble,Pecan Praline,Red Velvet,Pumpkin Spice,White Chocolate Raspberry
CART TOTAL
Cookies & Cream Hero Cake: qty @ $ per item
Strawberry Covered Chocolate Cake: qty @ $ per item
Bundtini: qty @ $ per item
The cart total is $
CART TOTAL
Cookies & Cream Hero Cake: qty @ $ per item
Strawberry Covered Chocolate Cake: qty @ $ per item
Bundtini: qty @ $ per item
The cart total is $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started