subject

A drink costs 4 dollars. A pizza costs 8 dollars. Given the number of each, compute total cost and assign to totalCost. Ex: 2 drinks and 3 pizzas yields totalCost of 32. let drinkQuantity = 2; // Code tested with values: 2 and 4
let pizzaQuantity = 3; // Code tested with values: 3 and 7

let totalCost = 0;

THIS IS JAVASCRIPT NOT MATH DO NOT GIVE ME SOME FORM OF MATH ANSWER

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:10, makailaaa2
My has been slow anyone else’s ?
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, bellamyciana
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
image
Computers and Technology, 24.06.2019 01:30, kevin72836
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
A drink costs 4 dollars. A pizza costs 8 dollars. Given the number of each, compute total cost and a...

Questions in other subjects:

Konu
Mathematics, 17.12.2020 01:00
Konu
Spanish, 17.12.2020 01:00
Konu
Chemistry, 17.12.2020 01:00
Konu
Chemistry, 17.12.2020 01:00