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

1440 tons of grain were brought to a silo over two days. On the second day, 80% of the amount of the grain delivered during the first day was brought in. How ma
What is the answer to number two
Describe three specific aspects of the items that compromise a Gatsby party?
A new class registration system has been established on campus. tonight, a representative from the registrar's office will speak about how to use the new system
With 128,134,140,146,152,whats the next number If the pattern continues?
Lots of energy is required for development in r-selected species. True or False
List the correct order of steps necessary to using usmt to migrate files from an old computer to a new computer.
Noah bought 1/2 pound of candy to share with his friends.They ate 3/8 pound of the candy.How much candy does Noah have left?
3 and 4? 12 points, thanks!!
Which are isotopes? an atom that has an atomic number of 20 and a mass number of 42 is an isotope of an atom that has which are isotopes? an atom that has an at