cccx9404 cccx9404
  • 26-10-2020
  • Computers and Technology
contestada

Write a program to ask the user how many apples they are buying, and then output the total cost of the apples.

Respuesta :

Cytokine
Cytokine Cytokine
  • 26-10-2020

In python:

apple_price = (whatever price you choose)

apple_quantity = int(input("How many apples are you buying? "))

print(f"The total cost of {apple_quantity} apple(s) is ${apple_quantity * apple_price}")

Answer Link

Otras preguntas

A passenger train's speed is 60 mi/h, and a freight train's speed is 40 mi/h. The passenger train travels the same distance in 1.5 h less time than the freight
which factor has the greatest influence on the direction of the air mass track
How can one determine the zeros of a function?
this is made up of over 100 volcanic and coral islands
what role do acids and bases play in our digestion
luke can run a mile in 7 minutes. colleen can run a mile in 5 minutes. at this rate, how much longer would it take luke to run 11 miles than it would take colle
What are the solutions to the equation x² = 169? Choose all answers that are correct
the x coordinate of the point that contains is always 0
A twelve pack of juice costs $3.90. An eighteen pack costs $5.49. Which is the better buy?
Terri's teacher gives her the equation 3(5)^x=127-2x, and tells her that she will not know how to solve it algebraically. Explain how Terri could use a graph t