js/scripts.js
/* function to calculate the total amount */
function to calculate the total amount
function to calculate the total amount
function totalAmount() {
  var totals = (getSize() + getCrust() + getTopping() + getCheese()) * getQuantity();
  alert(
    "You have Ordered " + getQuantity("") + " pizza," + "" +" amounting to ksh. " + totals + "" +
    " Thanks for your order welcome again."
  );
  var location = prompt("Do you want pizza to be delivered to your place?..Please enter your location.");
  if (location !== "") {
    alert("You order will be delivered shortly.Delivery fee is 150/=");
  }
}
function totalAmount ( ) { var totals = ( getSize ( ) + getCrust ( ) + getTopping ( ) + getCheese ( ) ) * getQuantity ( ) ; alert ( "You have Ordered " + getQuantity ( "" ) + " pizza," + "" + " amounting to ksh. " + totals + "" + " Thanks for your order welcome again." ) ; var location = prompt ( "Do you want pizza to be delivered to your place?..Please enter your location." ) ; if ( location !== "" ) { alert ( "You order will be delivered shortly.Delivery fee is 150/=" ) ; } }
function to calculate the total amount
function to calculate the total amount
// variable to get the location of the customer