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

what impact do nuclear power plants have on water resources? (
What was the main reason Wegeners continental drift hypothesis was rejected ?
Explain how friction affects the work done by machines
in littletown, the probability that a baseball team goes to city playoffs is 0.20. the probability that the team goes to state playoffs given that the team goes
Perform the operations and write the answer in simplest form 3/5 * 9/10
A car dealership has three locations, all about the same size, within the city. The graph shows last month’s sales figures for one of the locations. Which state
Is 80.59 less than or greater than 86.3
They took down the other Post oof
which type of reproduction are exact copies of the parent formed
How did the monarchy get stronger in France?