python code
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.
Figure a) Input information and pop-up box when the Process button is clicked.
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.
|
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.
Figure c) Sample Input and Output.
Figure d) Sample Input and Output.
Figure e) Sample Input and Output.
Figure f) Sample Input and Output.
Figure g) Sample Input and Output.
Figure h) Sample Input and Output.