Question
Write an object-oriented Python program that will allow the teacher to enter three test scores, then calculate and display their average rounded to one decimal
Write an object-oriented Python program that will allow the teacher to enter three test scores, then calculate and display their average rounded to one decimal place.
Use python 3
Write the program using tkinter to produce the GUI interface below.
Create a calc_avg() method to calculate the average of the three test scores.
The output from your program should look like this
Once you have your program running as shown above, try clicking the Average button before entering any test scores. Also, try entering non-numeric data. Write the try/except block to handle the exception that you see. DO NOT WRITE AN IF STATEMENT. If the exception is thrown, the exception handler should use an info dialog box widget to display the error message to the user, as shown below
te st1 frame Enter the score for test 1 Enter the score for test 2: Enter the score for test 3 test2_frame test3_frame avg frame Average Quit button_frame
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started