Question: 2. Write a main program that calls the ship_cost function and in a while loop repeats the calculation as long as the user answers 'yes'

 2. Write a main program that calls the ship_cost function and

2. Write a main program that calls the ship_cost function and in a while loop repeats the calculation as long as the user answers 'yes' to a prompt asking if they want to repeat. please solve the second question using 3.4 description. PLEASE USE PYTHON. (screenshot code)

ship_cost() does not do input or print. main needs to check for overweight. dont use input or print function

USE WHILE LOOP FUNCTION PLEASE

3.4 The cost of sending a package by an express delivery service is $15.00 for the first two pounds, and $5.00 for each pound or fraction thereof over two pounds. If the package weighs more than 70 pounds, a $15.00 excess weight surcharge is added to the cost. No package over 100 pounds will be accepted. Write a pro- gram that accepts the weight of a package in pounds and computes the cost of mailing the package. Be sure to handle the case of overweight packages

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!