Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

question as the below code body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif } // Video Demonstration - https://youtu.be/9CH7_BiI_1A var totalAmount = 0; var

question as the below code

Grocery List

Add Item

Description:

Amount:

Grocery Cart

Total

Total: $

Tax: $

Total with Tax: $

there question or code need to be add inside the code as

# Follow these instructions in the html document

1. Add the value of newAmount to the running total totalAmount. Tip: Use parseFloat()

2. Concatenate the value of Item Description into the table. Change item to the value of itemDescription

3. Display totalAmount in element with id="totalAmountBeforeTax"

4. Calculate tax as 7% of total (totalAmount)

5. Display tax in element with id="totalTax"

6. Display totalAmount + tax in element with id="totalAfterTax"

7. Display all currency values that are output to display 2 decimal places

Hint: use toFixed()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions