Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

Create a calc_avg() method to calculate the average of the three test scores.

The output from your program should look like this

image text in transcribed

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

=+2. Identify and analyze your audience.

Answered: 1 week ago