Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Add JavaScript to your program to compute the total cost of the order. The total

ID: 3675913 • Letter: A

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 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. If the user of your form clicks OK, the form should be submitted to formtest.php as before. However, if the user clicks "Cancel" the form should not be submitted. See Part 2 for a strong hint on how to do this.

The Cost for Carrot seeds are 3$ per pack

The cost for Corn seeds are 5$ per pack

The cost for beet seeds are 2$ per pack

Explanation / Answer

//total cart price including tax

function doMath() {

</tr>

</table

</h1>

<input type="button" value="OK"/>

   </body>

</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote