Question: Add JavaScript to your program to compute the total cost of the order. The total cost will be the sum of the price of each
Add JavaScript to your program to compute the total cost of the order. The total cost will be the sum of the price of each item times the quantity ordered times 1.07 to allow for taxes. Use a JavaScript confirm() call to display "The total cost of your order is (whatever the cost is)." The confirm() function displays a message box with your message and buttons for "OK" and "Cancel." It returns true of the "OK" button is clicked and false if the cancel button is clicked.
item1 = 39.99;
item2 = 99.99;
item3 = 24.99;
***User is required to enter quantity of each item in the order form. They are NOT prompted to enter.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
