kittycarmona04 kittycarmona04
  • 03-11-2020
  • Computers and Technology
contestada

Assume: itemCost = input(“Enter cost of item: “) Write one line of code that calculates the cost of 15 items and stores the result in the variable totalCost

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-11-2020

itemCost = input("Enter cost of items: ")

totalCost = 15 * float(itemCost)

print(totalCost)

The first line gets the total cost of the item from the user. The second line calculates the cost of 15 of those items and stores that value in the variable totalCost. The last line is just to test that our calculation works. I hope this helps!

Answer Link

Otras preguntas

plz help Bernie's Bikes rents bicycles for $10 plus $4 per hour. You have $26 to spend. Write an equation that will give you eh number of hours that
11) a - 15 >-40-6 + 3a)​
Why did George Tomkyns Chesney write "The Battle of Dorking"?
6. What is the oxidation number for the atom indicated in the following compounds.a. S in BaSO4b. P in PO4-3c. Cl in HCIO2​
Which of these refers specifically to a stiffening of the arteries, which in turn restricts blood flow? A) AIDS B) cardiotitus C) veinosclerosis D) arteriosc
How many solutions does -5x+10x+3=5x+6
Anyone have the answer???????????
20 points! FIRST PERSON WHO ANSWERS THIS QUESTION WILL BE BRAINLIEST! DON'T GUESS ONLY ANSWERS IF YOU KNOW! THANX What situation does the graph best represent?
AppleJumpy answer this
Taphonomy is the study of what happens to animals or humans between the time that they die and the time that their remains are found.