Python GUI Help
Assignment 8.
GUI Assignment for Assignment 3 problem.
The fines for Speeding in one of the counties in Florida is given in the following table.
|
MPH Over Speed Limit |
Fine |
|
Less than 10 MPH |
$129.00 |
|
Less than 15 MPH |
$204.00 |
|
Less than 20 MPH |
$254.00 |
|
Less than 30 MPH |
$279.00 |
|
Greater than or equal to 30 MPH |
Court Mandatory |
If you speed in school or construction zone your fine can be doubled.
Inputs:
· Speed Limit of a zone.
· Speed of the Vehicle
· Whether Construction or School Zone. Y/N (You can show this as a radio button or an input box like the speed entries)
The program also should display the following message for each of the above cases as shown in the table below:
|
Less than 10 MPH |
Be Careful |
|
Less than 15 MPH |
Drive with caution |
|
Less than 20 MPH |
You are driving dangerous |
|
Less than 30 MPH |
You are in Danger zone |
|
Greater than or equal to 30 MPH |
See ya in court |
For example your output should look like:
Speed Limit: 45
Vehicle speed: 66
Construction or School Zone: No
Total Fine Calculated = $254.00
Display: “You are Driving Dangerous”.
OR like:
Speed Limit: 45
Vehicle speed: 57
Construction or School Zone: Yes
Total Fine Calculated = $408.00
Display: “Drive with Caution”.
(The values shown bold are input values)
Redo assignment 3 graphically using tkinter where the inputs are entered into a graphic box and output which is calculated fine should be exhibited in a different box and the display message in a different box like we did the temperature converter program. You can reuse the method from assignment 3 if applicable to calculate the fine and the message.