Question: Please, I want a very clear solution! if you can put every full tap alone please do it. Answer all of the parts, please. QUESTION
Please, I want a very clear solution! if you can put every full tap alone please do it. Answer all of the parts, please.
QUESTION 1: [10 POINTS Write a separate python program to accomplish this question. Save the program with a filename hw2_01.py. You are required to create a calculator using Tkinter. Consider the followings: A. [6 POINT] The calculator should include 10 buttons to represent the numbers from 0 9. Additionally, the calculator should include 4 buttons for basic mathematical operations (+;-/,*) and one button for equivalence (=). The result of the mathematical operations should be displayed on an entry. For all these controls you are required to consider all the following properties: a. Professional layout of your screen. b. Size (width & height). c. Padding d. Alignments e. Font f. Colors Note: Any identical submission will be considered as CHEETING and will be ZERO graded. B. [2 POINTS) Create a Math class in a separate Module file called my_math.py. The class should include 4 methods for basic mathematical operations (Sum +, Subtract -, Divide !, Multiply *). Each method should take two numbers as input parameters and it should return one number as an output C. [2 POINTS) The calculator should operate successfully for all 4 basic mathematical operations. Note: The calculator should handle divide by zero by displaying an Error Message dialog. SUBMISSION: You should submit your code by uploading two files: hw2_01.py + my_math.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
