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

A character sketch is also known as a(n)?
Under early mercantilism, European nations sought to import raw materials from the Americas and ship manufactured goods to their colonies. Has that pattern chan
what does pressure do to the environment
what was akhenaten famous for
Explain nitrogen fixation
I really need help for this math problem
Which orchestra saw the addition of the contrabassoon, bass clarinet, english horn, saxophone, and piccolo?
How did the relative location Korean peninsula influence the development of Korean Civilization?
A fence post is 1.9 meters long. It is placed in a hole that is 0.65 meter deep. How far above the ground is the top of the fence post? Enter your answer as a
To perform a structural analysis on the word metaphysician, one of the factors you would identify is the _______ of the word. A. origin B. connotati