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

the plaque of 1348 is most significant because
If something is hard to handle it is: sticky bulky compact dense
astronomy can best be described as a/an
What is 144 divided by 3 and does it have a remainder
what Battle proved to be the single bloodiest day in American history.
How do you multiply 2/9 x 3? I got 6/9 and my teacher says that your numerator has to be bigger than your denominator. Plus I have to simplify
solve inequality and graph 3<-5n+2n
what are the two important jobs of photosynthesis
What was the main purpose of one of the first world organizations, the League of Nations? to serve as a court of justice to try war criminals to provide aid to
The process of cell division that creates sex cells in sexually reproducing organisms is called meiosis. translation. replication. mitosis.