Question
Use the Zelle graphics.py library Python code Python code covered in this course and data structures covered in this course to solve the following problem:
Use the Zelle graphics.py library Python code Python code covered in this course and data structures covered in this course to solve the following problem:
Demi's Donuts serves donuts and coffee. Customers may order place orders online through an app. Beides donuts, customers may order two different kinds of coffee.
Here is a complete price list: Donuts:
filled donut: jelly or cream ($1.30 each)
traditional "donut with a hole": plain, sugar, or chocolate ($.99 each)
Coffee: Regular coffee $1.75, iced coffee $2.25
Write an GUI application for customers to place an order online. The user will select the donuts they want (five choices) and the quantity for each choice selected, then will select the coffee they want (and the quantity), then click on the ORDER button.
The application interface will display the total of the order including a 7% sales tax added to the order. Include a message to the user telling them that the order is complete. Also draw, a small image using the graphics shapes we were introduced to in this module to the interface.
The user will exit the GUI application by clicking on the QUIT button.
Use coordinate transformation (the setCoords method) in your program to divide your window for easier placement of objects. And name this program Donut.py......
Have to use "From graphics import *"
#import the GUI libary "From Graphics import"
def main():
# Performing tasks that are required
#Define a class named donutpy
#button creation
#grid creation
#call the main function
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