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

Sara has had mouth cancer, an early onset of menopause, and issues with cholesterol. Which drug does Sara most likely abuse? A. Alcohol B. Hallucinogens
If a bolt of fabric measuring 20 yards 8 inches is divided into 26 equal sections how long is each section
2(v-h)/k=r Solve equation for v in terms of all other variables involved
6.8+4.3+5.6 estimate a range for each sum
In the united states, most individuals begin school around age 5, whereas in australia they start at 3. this is an illustration of how development is
The electrical stimulation of the brain is conducted while the patient:
From the mountain peak, the city below looked vast and beautiful. Jeffrey and I sat there and contemplated our accomplishment. Identify the prepositional phra
Does anybody know the answers?
What does this demand curve demonstrate?
solve for m the problem is y=mx+b