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

How did most enslaved people cope with the miserable conditions they faced?
What is the answer to this problem?
what are the difference between ICD-9 Codes and
Which type of correctional facility hosts offenders below the age of 18?
Water and soil pollution from oil and gas drilling is primarily what type of concern?
Agree or disagree: taxing the Internet would discourage new technology investment and employment growth.
Select all that apply. Which of the following are true about an activity log? The options are: It helps you keep track of you play and exercise activities
Explain how hemoglobin works at the gills of a fish
____ los perros porque son amigables. nos gustan nos gustaría te gusta ____ mucho visitar museos de arte contemporáneo. me gustan te gustarían me gusta a los
Who is the most powerful person in the senate list four powers?