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

(LC)Which territorial acquisition was the result of a rebellion supported by the U.S. military? Samoa Midway Island Hawaii the Virgin Islands ITS NOT A IM
Explain how to do this math problem all the way threw 6times2 and 7/10
what is the greatest common factor of 65,143,and 169
A substance that enters into a chemical reaction is called a(n) _____. enzyme reactant catalyst product
Two cards are drawn from a single deck of 52 cards one after the other. If the first card is not replaced, find the probability of selecting a King on the first
I need help with fractions What is 5/7 - 1/5?
It is a polymer that tesist all kinds of environmental damages? A.sapropollenin B.waxes C.cuticle D.lignin
what is 31/100 in simpliest form?
what is an equation that relates weight on earth to weight on the moon
The government of India has a parliamentary system that is very similar to that of the United Kingdom. The leader of Parliament's majority party is also the exe