Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi there, I currently have a simple HTML form, a menu, that would calculate the total cost of the purchase. Such as 3x Single shot
Hi there,
I currently have a simple HTML form, a menu, that would calculate the total cost of the purchase. Such as 3x Single shot of black coffee with 2x double shot esspresso. Total cost of this would be that. Using
Following is my code
What I see
I really appreciate if someoene could help me out
function totalPrice() var totalprice = 0: var price-of-java 0; var price_of_cafe 0; var price-of-cappu = 0; price-of-java-justJavaCost(); price_of_cafe cafeCost(); price-of-cappu = cappucost(); - total_Price -price_of_cafe + price_of_java + price_of_cappu; if (total_Price> 0) total_Price-"$"+total_Price; document.getElementById ("totalltemPrice").innerHTML = total-Price; else total_Price 0; document.getElementById("totalItemPrice").innerHTML"$0" function totalPrice() var totalprice = 0: var price-of-java 0; var price_of_cafe 0; var price-of-cappu = 0; price-of-java-justJavaCost(); price_of_cafe cafeCost(); price-of-cappu = cappucost(); - total_Price -price_of_cafe + price_of_java + price_of_cappu; if (total_Price> 0) total_Price-"$"+total_Price; document.getElementById ("totalltemPrice").innerHTML = total-Price; else total_Price 0; document.getElementById("totalItemPrice").innerHTML"$0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started