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

I have Black short hair and i want to dye the tips to a honey color what type of dye should I use??
the retail price is the amount a merchant pays for the merchandise he sells
3/5+1/11 in simplest form
to spy on the British,which patriot disguised himself as a teacher
What is the role of family agencies, family therapists, and support groups?
Which one of these characteristics did all of the first waves of immigrants have in common?
If you lived under an economic system in which the government controlled all aspects of production, which economic system would this be?
¿______ son clases obligatorias? A. Que B. Cual C. Cuales
What the number is 1/10 the value of 237
the sales tax in your city is 8.8%, and an item costs $63 before tax. How much tax would you pay on that item