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 need help with this please
Which organelles are not found in plant cells?
If x-1/3 = kand k = 3, what is the value of x? a. 2 b. 4 c. 9 d. 10
In 1986 the Federal Office of Road Safety in Australia conducted an experiment to assess the effects of alcohol and marijuana on mood and performance.29 Partici
Find the y-intercept of the graph. Now you can practice finding the y- intercept. Here's the first one. Enter the correct answer. 000 DONE Clear all OOO -8 -6 -
What is 2.8 x 4.6? Find the missing partial products.
I’m stuck on this question if someone could help me I would highly appreciate:)
A system where friction is considered and calculated A. Dynamic system B. Open system C. Closed system D. Static system
Waht are the backstories behind cubism painting?. Why did pablo picasso paint them?. Anyone know
what do you think of the definition of political perspective?