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

PLEASE REALLY NEED HELP EASY Identify the class of the italicized pronoun(s) in the sentence. Is Percival Lowell the astronomer{ whom} we credit for discoverin
How does culture influence the self concept?
At his comic book store, Korey’s Comics, Korey sells approximately $3,250 in comic books each month. But as a comic book dealer, Korey only pays $1,285 for the
Which equation would you use to solve this problem? Six is 8% of what number? p = (0.08)6 6 = (0.08)w 8 = (0.06)w 6 = (0.8)w
a landscape company charges $100 plus $15 per hour. another company charges $75 plus $17 per hour. how long is a job that costs the same no matter which company
What equation accurately describes the behavior of the electron in a hydrogen atom?
Need a history scentence about the declaration of independence
What are isotopes? how are they different from each other?
What must u do when asking an interviewee a question
Which food provides the least amount of available zinc?​?