python code
Page 1 of 4 Mail Delivery Service (40 Points) DUE: Wednesday, September 30th by 11:59 pm Submission: Email all Python files (.py) to [email protected] Importance: The application and Python code must be your own to qualify for grades. Do not share your code with your classmates. 1. Create a Python application, Delivery1.py for a delivery service. The program should prompt the user for the
following inputs. • A code representing the delivery area. A local delivery is code 1, and a long distance delivery is code 2. • A weight, in pounds of the item to be delivered. The program will then display the fee for the item based on the delivery type and its weight. The fee for the delivery, as follows:
Distance Weight Fee ($) 1 Under 5 pounds 12.00 1 5 to 20 pounds 16.50 1 Over 20 pounds 22.00 2 Under 5 pounds 35.00 2 5 pounds or more 47.95
For examples: (These outputs are from different runs. They are not from a loop.)
Page 2 of 4 2. Create Delivery2.py by modifying the Delivery1.py so that it repeats the entire task for 5 times. You must use a
loop for your repetition. For example:
Page 3 of 4 3. Create Delivery3.py so that the program will prompt to ask the user whether the user would like to continue or
not. For example:
Page 4 of 4 4. Create Delivery4.py by modifying the Delivery3.py so that the program will also compute the followings and
display the results at the end of the program.
• Total amount and fee of local delivery items • Total amount and fee of long distance delivery items • Total fee of delivery services
For example: