Question: Write a JavaScript program that solves the following problem: Youie buys 3 items at the campus bookstore. A backpack, a calculator, and a textbook. The
Write a JavaScript program that solves the following problem:
Youie buys 3 items at the campus bookstore. A backpack, a calculator, and a textbook.
The backpack costs $56.99. The calculator costs $104.89. The textbook costs $51.97.
The bookstore charges 13% sales tax.
What is the subtotal amount for the 3 items?
What is the sales tax amount for the 3 items?
What is the total cost for the 3 items after the sales tax is added to the subtotal?
This is html code:
Demonstrate skills/techniques learned from earlier assignments. Demonstrate the use of document.getElementById to read and change elements from the DOM. Demonstrate the use of textContents to read and change the text contents of an element in the DOM. Purchased Items
Item Name Item Price Quantity Backpack 1 56.99 Calculator 1 104.89 Textbook 1 51.97 Subtotal Tax Total Cost
