Question: CSCI 1 1 0 Week 1 3 Assignment Worth: 1 0 0 points This program practices with class inheritance and a Python tkinter application that

CSCI 110 Week 13 Assignment
Worth: 100 points
This program practices with class inheritance and a Python tkinter application that uses labels, entry, and buttons. Design an application that looks similar to the image below. The main window has a title.
Base Class:
Base class Poloshirt is provided and should be used.
Derived class:
Write class MonogramPolo that inherits from Poloshirt. It adds a data attribute for the monogram text. It adds accessor and mutator for this new attribute: It overrides str. to include the monogram text in the return string. It overrides _ eq_ to include the comparison of monogram text for equality. It overrides the price method where the price is computed as the price of the base class plus 5.00 for monogram handling and 0.50 per character in the monogram text.
GUI Application:
Frames:
The top frame holds a wellome message with a background color change.
There are three frames labels and entry areas.
There is a result frame with output label.
The bottom frame holds two Buttons for Calculate and Quit
Calculate Button:
Write the Click event handler to read the name of the size, color, and monogram from the entry areas. If the data is invalid in size or color areas, display a info dialog with appropriate error message and clear the entry. A valid size is S, M, L, or XL. A valid color is RED or BLUE.
Create either a Poloshirt or MonogramPolo object based on whether monogram entry is blank. Use the class method to get the string representation and price.
Quit Button:
The program ends.
Grading Rubric:
Derived class MonogramPolo has all required methods and correct mathematics.
The main window has a title.
The top frame has a label and background color.
The interior frames use labels and entry areas with appropriate names and comments.
The bottom frames offers two buttons with associated event handlers.
Quit button ends the program.
Calculate button:
The data is read from the entry areas.
Data validation with an info dialog is used on invalid size
Data validation with an info dialog is used on invalid color
The correct object of type Poloshirt or MonogramPolo is created based on monogram text.
The object _ is used to create correct output text.
The object price method is used to get the shirt price.
The result text is neat and formatted to 2 decimals (see sample output)
20 pts
5 pts
5 pts
10 pts
10 pts
5 pts
10 pts
5 pts
5 pts
10 pts
5 pts
5 pts
5 pts
CSCI 1 1 0 Week 1 3 Assignment Worth: 1 0 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!