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 waste productsof respirationare water and
In one paragraph (four to six sentences) summarize the Cuban Missile Crisis. Why was it such a significant event?
£90 deacresed by 25% using the multiplier method
What is the interquartile range of this data? 6 7 8 9 Box-and whisker plot titled Temperatures in Celsius ranging from 12 to 48 with the five-number summary fro
If a person is kicking there legs three times every four seconds what is the frequency.
Please help I don’t understand I need help please
Answer the question and do it correctly!
QUESTIONSDOK S STANDARD RST.1MS-PS2-2A car driving at a constant speed of 20 m/s(meters per second)turns right, down a street.1. Is the car accelerating during
A federal government program involves re-training unemployed workers who lost their jobs in the recession in 2008. Which president’s leadership style does this
Write a rule for the followingInput Output1 32 73 11