subject
Mathematics, 12.12.2020 17:30 tatedason33741

A fruit company sells oranges for 32 cents a pound plus $7.50 per order for shipping. If an order is over 100 pounds, shipping cost is reduced by $1.50. This program is supposed to ask the user for the number of pounds of oranges and then print the cost of the order, but it is all mixed up! Can you put the lines in the right order? Note that two lines are indented slightly.

Don't worry if you can't solve this one, as we'll cover all of how to do this in the coming weeks. But playing around with this program --- rearranging lines, keeping whole lines together --- and trying to figure out how to make it work will give you good experience in experimenting with Python.

costFruit = pounds * 0.32 #1

else: #2

if pounds <= 100 : #3

pounds = int(input("Enter pounds: ")) #4

print(totalCost) #5

shipping = 6.00 #6

shipping = 7.50 #7

totalCost = costFruit + shipping #8

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 18:30
Select the lengths in centimeters that would form a right triangle
Answers: 1
question
Mathematics, 21.06.2019 22:30
Which of the following represents the length of a diagonal of this trapezoid?
Answers: 1
question
Mathematics, 22.06.2019 02:00
X= 3y - 6 2x - 4y = 8 solve the system of equations using substitution. a) (-12,-2) b) (15,7) c) (21,9) d) (24,10)
Answers: 1
question
Mathematics, 22.06.2019 03:30
Carla is saving money for a trip this summer. she already has some money in her savings account and will add the same amount to her account each week. at the end of 2? weeks, carla has? $130. at the end of 8? weeks, she has? $280. write a linear function in the form y=mx+b to represent the amount of money m that carla has saved after w weeks.
Answers: 3
You know the right answer?
A fruit company sells oranges for 32 cents a pound plus $7.50 per order for shipping. If an order is...
Questions
question
Mathematics, 11.05.2021 23:20
question
English, 11.05.2021 23:20
question
Mathematics, 11.05.2021 23:20
Questions on the website: 13722363