python code

profilePoohny Bear
EventHandler.doc

1. Modify your Mail Delivery Service Python application from the previous assignment and add an event handler to the “Process” button to display a pop-up box containing the information, as shown below.

image1.png

Figure a) Input information and pop-up box when the Process button is clicked.

image2.png

Figure b) Input information and pop-up box when Process button is clicked.

2. Modify your Mail Delivery Service Application so that the program displays the fee for the delivery service based on the table shown below.

image3.png

Distance

Weight

Fee ($)

Local

Under 5 pounds

5.75

Local

5 to 20 pounds

10.75

Local

Over 20 pounds

20.75

Long Distance

Under 5 pounds

35.75

Long Distance

5 pounds or more

47.75

Table: Delivery Service Fees

If the insurance is checked, add $4.00 to the fee.

image4.png

Figure c) Sample Input and Output.

image5.png

Figure d) Sample Input and Output.

image6.png

Figure e) Sample Input and Output.

image7.png

Figure f) Sample Input and Output.

image8.png

Figure g) Sample Input and Output.

image9.png

Figure h) Sample Input and Output.