Mathematics
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

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 16:30, enchantednights
Look at attachment. has all info needed. need
Answers: 1
image
Mathematics, 21.06.2019 17:10, payshencec21
The number of chocolate chips in an 18-ounce bag of chocolate chip cookies is approximately normally distributed with a mean of 1252 chips and standard deviation 129 chips. (a) what is the probability that a randomly selected bag contains between 1100 and 1500 chocolate chips, inclusive? (b) what is the probability that a randomly selected bag contains fewer than 1125 chocolate chips? (c) what proportion of bags contains more than 1225 chocolate chips? (d) what is the percentile rank of a bag that contains 1425 chocolate chips?
Answers: 1
image
Mathematics, 21.06.2019 22:00, danielahalesp87vj0
18 16 11 45 33 11 33 14 18 11 what is the mode for this data set
Answers: 2
image
Mathematics, 22.06.2019 00:30, dragpack70
Will mark ! (10 points also! ) if x varies inversely with y and x =6 when y= 10, find y when x=8 a. y=4.8 b. y=7.5 c. y=40/3 d. y=4/15
Answers: 1
Do you know the correct answer?
A fruit company sells oranges for 32 cents a pound plus $7.50 per order for shipping. If an order is...

Questions in other subjects: