Question: Modify the following web document: sandwich_shop.htm I have to write the function that will confirm what the user ordered and to output the total cost

Modify the following web document: sandwich_shop.htm

I have to write the function that will confirm what the user ordered and to output the total cost of their order. You should output this information to the

section called 'results'.

For example, if the user chose hamburger, and checked the boxes for both avocado and cheese, but selected 'no' for chips, you would output:

You ordered a hamburger. You wanted cheese. You wanted avocado. You did not want chips. The cost is $10.74.

Output to 2 decimal places (since this is a monetary amount).

Using a contextual selector, style the results section so that any text inside is displayed in italics.

Sandwich Shop

Sandwich Ordering Form

Select a sandwich:

Toppings:

Cheese ($1.25)
Avocado ($1.50)

Do you want chips on the side?
Yes ($1.50)
No

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!