Question: Create a program that simulates purchasing items from an online store. The program must include the following. 1. Include comments with your name, the

Create a program that simulates purchasing items from an online store. The 

Create a program that simulates purchasing items from an online store. The program must include the following. 1. Include comments with your name, the date, and the purpose of your program at the start of the program. 2. Include the name of your store and a greeting for your customer. 3. Prompt the user to select three items. 4. Display the price for each item. (You decide the prices for each item and code them into your program. For example, the first item would always be $3.50.) 5. Prompt the user to enter how many of each item they would like to buy. 6. Display each item's name and its total. 7. Display the grand total for the purchases, including tax. You may choose the tax rate. a. Tax can be calculated by adding up the items and multiplying the total by the tax rate. b. Total can be calculated by adding the tax to the total value of the items. To round the total to two decimal places, you may use the following calculation: Math.round(number*100)/ 100; Where number is a numerical value or a variable Example: let total = 35.505544; let roundedTotal = Math.round(total* 100) / 100; console.log(roundedTotal);

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 Algorithms Questions!