Using Python’s tkinter Graphical User Interface (GUI) module create a Python program to input the number of each type of coin a user has in their possession and then compute and display the total dollar and cents value of these coins. Your solution must accommodate Dollar, Half-Dollar, Quarter, Dime, Nickel, and Penny coins. Your solution must be robust against invalid inputs (i.e., negative value entered into any coin entry widget).
Please find the code below;;;


from tkinter import *
class Display() :
master = Tk();
e1 = Entry(master)
e2 = Entry(master)
e3 = Entry(master)
e4 = Entry(master)
e5 = Entry(master)
e6 = Entry(master)
result =Label(master, text="")
def __init__(self):
self.make_widgets();
def doCalculation(self):
number1 = 0;
total = 0
try :
number1 = int(self.e1.get());
number2 = int(self.e2.get());
number3 = int(self.e3.get());
number4 = int(self.e4.get());
number5 = int(self.e5.get());
number6 = int(self.e6.get());
if number1<0 or number2<0 or number3<0 or number4<0 or
number5<0 or number6<0 :
self.result.config(text = "Negative value not allowed")
return
totalCent = number1*100 +number2*50 +number3*25 +number4*10
+number5*5 +number6
dollarValue = totalCent//100;
cents = totalCent - dollarValue*100
self.result.config(text = "Dollar : "+str(dollarValue)+" Cents :
"+str(cents))
except:
self.result.config(text = "Error!!! Invalid number
entered!!!!!")
def make_widgets(self):
Label(self.master, text="Dollars : ").grid(row=0, column=0)
self.e1.grid(row=0, column=1)
Label(self.master, text="Half Dollars : ").grid(row=1,
column=0)
self.e2.grid(row=1, column=1)
Label(self.master, text="Quarter : ").grid(row=2, column=0)
self.e3.grid(row=2, column=1)
Label(self.master, text="Dime : ").grid(row=3, column=0)
self.e4.grid(row=3, column=1)
Label(self.master, text="Nickel : ").grid(row=4, column=0)
self.e5.grid(row=4, column=1)
Label(self.master, text="Penny : ").grid(row=5, column=0)
self.e6.grid(row=5, column=1)
Button(self.master, text='Calculate sum and
average',command=self.doCalculation).grid(row=6, column=0)
self.result.grid(row=6, column=1)
mainloop( )
#CALLING CLASS FOR MAIN
Display();
output:


Using Python’s tkinter Graphical User Interface (GUI) module create a Python program to input the number...
Create a GUI (Graphical User Interface) in Python to
graph the approximation of the Golden Spiral (Fibonacci
Spiral).
For this purpose, you must calculate the coordinates
and radio, and simulate a process of infinity using a loop.
In short, the graph must start in the lower left side
corner and continue to its center infinitely.
34 21 13
34 21 13
" In the workshop exercises you have used Python's Tkinter module to create simple Graphical User Interfaces. The following code is an incomplete Python program relying on Tkinter (with deliberately unhelpful variable and function names) which you must complete by filling in the blanks. When complete the program should create a window with two buttons, labelled and!!', respectively. When the button la belled'???' is pushed nothing happens. When the button labelled'!!"is pushed both buttons' labels are set to'!!!' from tkinter...
object oriented programming solve 2 quetions
9 Lab 8 - Graphical User Interface (GUI) The assignments for this week are to understand the use of tkinter modules to create GUI in Python. 9.1 Assignment 1 1. Create the following window using the tkinter module in Python. The button Quit closes the window, and the button Show prints the first name and last name entered in the Entry boxes. First Name Last Name Quit Show 2. Create the following window using...
python code( using functions please)! Rules of the game: - This game requires a dice. The goal of the game is to collect the correct number of coins to create a dollar. Players take coins based on a roll of the dice. The numbers on the dice correlate to the coin values as follows: 1—penny 2—nickel 3—dime 4—quarter 5— ( pick a random card from 1 to 4): o 1 = penny o 2 =...
REQUIREMENTS: Write a Graphical User Interface (GUI) program using JavaFX that prompts the user to enter a credit card number. Display whether the number is valid and the type of credit cards (i.e., Visa, MasterCard, American Express, Discover, and etc). The requirements for this assignment are listed below: • Create a class (CreditNumberValidator) that contains these methods: // Return true if the card number is valid. Boolean isValid(String cardNumber); // Get result from Step 2. int sumOfDoubleEvenPlace(String cardNumber); // Return...
Tosssing Coins for a Dollar (C++) For this assigment, you will create a game program using the Coin class from Programming Challenge 12 (Coin Toss Simuator). The prgram should have three instances of the Coin class: one representing a quarter, one representing a dime, and one representing a nickel. When the game begins, your starting balance is $0. During each round of the game, the program will toss the simulated coins. When a coin is tossed, the value of the...
(In Python 3) Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. Ex: If the input is: 0 (or less than 0), the output is: No change Ex: If the input is: 45 the output is: 1 Quarter 2 Dimes So...
Write a program that tells what coins to give out for as change from 1 cent to 99 cents. Use coin denominations of 25 cents (quarters), 10 cents (dimes), and 1 cent (pennies) only. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. Solution Demo Hello I am the coin machine! I will give you the least number of coins for your change....
I. User Interface Create a JavaFX application with a graphical user interface (GUI) based on the attached “GUI Mock-Up”. Write code to display each of the following screens in the GUI: A. A main screen, showing the following controls: • buttons for “Add”, “Modify”, “Delete”, “Search” for parts and products, and “Exit” • lists for parts and products • text boxes for searching for parts and products • title labels for parts, products, and the application title B. An add...
C++ HW Question Your program will simulate a simple change maker for a vending machine. It will start with a stock of coins and dollars. It will then repeatedly request the price for an item to be purchased or to quit. If given a price, it will accept nickels, dimes, quarters, one-dollar and five-dollar bills—deposited one at a time—in payment. When the user has deposited enough to cover the cost of the item, the program will calculate the coins to...