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

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 20:20, Kelbee781
Each person in an it department of 25 people works on at least one of 3 major projects: system security, program implementation, platform development. 10 people work on system security, 13 work on program implementation, and 12 work on platform development. 4 people work on system security and platform development, 5 people work on program implementation and platform development, and 2 people work on all three projects. how many people work on system security and program implementation?
Answers: 1
image
Mathematics, 21.06.2019 21:30, bandzswagg123
Zack notices that segment nm and segment pq are congruent in the image below: which step could him determine if δnmo ≅δpqr by sas? (5 points) segment mo ≅ segment qr segment on ≅ segment qp ∠ n ≅ ∠ r ∠ o ≅ ∠ q
Answers: 3
image
Mathematics, 21.06.2019 22:30, drandbone92
What is fraction that is equivalent to 3/8
Answers: 2
image
Mathematics, 21.06.2019 22:30, Edwardwall
What three-dimensional solid have 6 rectangular faces, 2 equal bases that are not rectangles and 18 edges
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 in other subjects:

Konu
Mathematics, 23.03.2020 17:27