Sarge's Bagel Hut has asked you to write an application that their staff can use to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Sarge's Bagel Hut has asked you to write an application that their staff can use to record an order as it is requested. The general specifications are: • Customers may call in and order - White and whole wheat, onion, or raisin bagels with a variety of toppings • The application should display - The total of the order Bagels: - White bagel $1.29 Toppings: tk Whole wheat bagel $1.59 Cinnamon Raisin bagel $1.69 Onion bagel $1.49 - Cream cheese $0.50 - Butter $0.20 Sample outputs: tk Blueberry jam $0.70 Peach jelly $0.70 0 Welcome to Sarge's Bagel Hut All prices include tax Pick a Bagel C White - $1.29 Wheat - $1.59 Raisin-$1.69 Onion-$1.49 Calculate Quit Pick a Bagel White-$1.29 Wheat - $1.59 0 Welcome to Sarge's Bagel Hut All prices include tax CRaisin-$1.69 COnion-$1.49 Pick Your Toppings Cream cheese - $0.50 ✔Butter - $0.20 Peach jelly-$0.70 Blueberry jam - $0.70 i. ii. Calculate Quit iii. iv. V. Pick Your Toppings Cream cheese- $0.50 ii. Butter- $0.20 Peach jelly - $0.70 Blueberry jam - $0.70 iii. iv. Your Cost Total: $1.79 e. Populate the topping frame: i. Your Cost General Guidance and hints: 1. Import the appropriate modules (tkinter and tkinter.messagebox as in the lecture) to build your GUI. Total: $2.49 2. Create a class for your Order Calculator. 3. Define a constructor (_init_method) which performs the following operations: a. Create three frames: one for the greeting; one for the bagels and toppings; and one for the Calculate and Quit buttons b. The middle frame itself will need two inner frames. These should have borders around them. c. Create the two line greeting label and add it to the top frame. d. Populate the bagel frame: OK Create the label with a border around it. OK X Create the label with a border around it. X You will need to create an IntVar object for the radio buttons. Create the four radio buttons. Add the label and the radio buttons to the frame Preselect the white bagel You will need to create an IntVar object for each of the Checkbutton objects Create the Checkbutton objects. Add the label and the Checkbutton objects to the frame f. Populate the bottom frame by creating the Calculate and Quit buttons and associating the appropriate command to them. g. Pack all the frames 4. Define the callback function for the Calculate button a. Define the constants of the costs of each bagel and topping if you have not done so previously. b. Define the show cost function, computing the total cost of all the options you have chosen. c. Round the cost to the nearest penny. (This is necessary, since floating point is never exact). d. Display the cost in an info message box. 5. Attempt to replicate the design of the windows as closely as you can. a. Lining up the checkbuttons requires additional features of tkinter that we are not covering in this course. If you wish to try to line them up, you are welcome to, but it is not a requirement of this lab. b. The graders will be grading based on the appearance and functionality. This is necessary to streamline the grading process so that it can be done efficiently and consistently. (You are welcome to try to refine your design as you wish for your own benefit, but you should turn in a program that mimics the examples given above.) Sarge's Bagel Hut has asked you to write an application that their staff can use to record an order as it is requested. The general specifications are: • Customers may call in and order - White and whole wheat, onion, or raisin bagels with a variety of toppings • The application should display - The total of the order Bagels: - White bagel $1.29 Toppings: tk Whole wheat bagel $1.59 Cinnamon Raisin bagel $1.69 Onion bagel $1.49 - Cream cheese $0.50 - Butter $0.20 Sample outputs: tk Blueberry jam $0.70 Peach jelly $0.70 0 Welcome to Sarge's Bagel Hut All prices include tax Pick a Bagel C White - $1.29 Wheat - $1.59 Raisin-$1.69 Onion-$1.49 Calculate Quit Pick a Bagel White-$1.29 Wheat - $1.59 0 Welcome to Sarge's Bagel Hut All prices include tax CRaisin-$1.69 COnion-$1.49 Pick Your Toppings Cream cheese - $0.50 ✔Butter - $0.20 Peach jelly-$0.70 Blueberry jam - $0.70 i. ii. Calculate Quit iii. iv. V. Pick Your Toppings Cream cheese- $0.50 ii. Butter- $0.20 Peach jelly - $0.70 Blueberry jam - $0.70 iii. iv. Your Cost Total: $1.79 e. Populate the topping frame: i. Your Cost General Guidance and hints: 1. Import the appropriate modules (tkinter and tkinter.messagebox as in the lecture) to build your GUI. Total: $2.49 2. Create a class for your Order Calculator. 3. Define a constructor (_init_method) which performs the following operations: a. Create three frames: one for the greeting; one for the bagels and toppings; and one for the Calculate and Quit buttons b. The middle frame itself will need two inner frames. These should have borders around them. c. Create the two line greeting label and add it to the top frame. d. Populate the bagel frame: OK Create the label with a border around it. OK X Create the label with a border around it. X You will need to create an IntVar object for the radio buttons. Create the four radio buttons. Add the label and the radio buttons to the frame Preselect the white bagel You will need to create an IntVar object for each of the Checkbutton objects Create the Checkbutton objects. Add the label and the Checkbutton objects to the frame f. Populate the bottom frame by creating the Calculate and Quit buttons and associating the appropriate command to them. g. Pack all the frames 4. Define the callback function for the Calculate button a. Define the constants of the costs of each bagel and topping if you have not done so previously. b. Define the show cost function, computing the total cost of all the options you have chosen. c. Round the cost to the nearest penny. (This is necessary, since floating point is never exact). d. Display the cost in an info message box. 5. Attempt to replicate the design of the windows as closely as you can. a. Lining up the checkbuttons requires additional features of tkinter that we are not covering in this course. If you wish to try to line them up, you are welcome to, but it is not a requirement of this lab. b. The graders will be grading based on the appearance and functionality. This is necessary to streamline the grading process so that it can be done efficiently and consistently. (You are welcome to try to refine your design as you wish for your own benefit, but you should turn in a program that mimics the examples given above.)
Expert Answer:
Related Book For
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley
Posted Date:
Students also viewed these programming questions
-
The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor (width...
-
You are shopping, and your roommate has asked you to pick up toothpaste and dental rinse. However, your roommate did not tell you which brands to get. The store has eight brands of toothpaste and...
-
A midsized business with 100 end-users has asked you to develop a new intranet with a prioritizing requirement list. It is clear to you that the business cannot function without an intranet these...
-
Good Morning Food, Inc. is using the profitability index (PI) when evaluating projects. You have to find the PI for the company's project, assuming the company's cost of capital is 14.29 percent. The...
-
You are entering negotiations to purchase a business and are trying to formulate a negotiating strategy. You want to determine the minimum price you should offer and the maximum you should be willing...
-
1. Identify which civil procedure rule(s) control venue and jurisdiction in TEXAS. Compare and contrast your state's rules to those of the Federal Rules for Civil Procedure on these two matters. 2....
-
Let x represent the weight of a students school bag. Determine whether the random variable x is discrete or continuous. Explain.
-
We might expect credit card purchases to differ from cash purchases at the same store. Table P-15 contains daily gross sales and items sold for cash purchases and daily gross sales and items sold for...
-
Managers have to be prepared to lead their organizations through varying economic conditions. Explain why it is important to understand GDP data, and how changes inunemployment and inflation impact...
-
A month has elapsed since Precision Computer Centre's year-end. Tony Freedman will use four specialized journals for recording business transactions in the month of September. To assist you in...
-
Remove missing values from your dataset(s) before answering the following questions. 1) Use mobile.csv dataset that classifies mobile phones with respect to their prices into four categories...
-
List and discuss the handwriting on the wall. How does Who Moved my Cheese help you deal with obstacles and change?
-
An investment group of 15 college students at Duke University decided to contribute $ 255 each into a regular savings account. Determine how much would be in the account after4 years at 1.23%...
-
In what ways would transactional and laissez-faire leadership styles be ineffective in encouraging organizational commitment? How might leadership style need to change with an organization's...
-
Wimbledon paid 2,081,000 pounds in 2020 to both the Ladies' and Gentlemen's Singles champions. If the champion's prize for the Gentlemen's Singles increased at a rate of 8.89% per year since 1968,...
-
RUI limited issued bonds at R 1 0 0 0 par 5 years ago. With 1 2 % coupon rate, paid semi - annually, the bond will mature ten years from now. Calculate the current price of the bond if the market...
-
Write the general equations for the nth term of the arithmetic sequence: -6,-8,-10,-12-. Answer: Find the 24 th term in the sequence. Answer: Find the sum of the first 24 terms of the sequence....
-
Multiple Choice Questions The following questions concern CPA firms' liability under common law. Choose the best response. a. Sharp, CPA, was engaged by Peters & Sons, a partnership, to give an...
-
Niosoki Auto Parts sells new parts for foreign automobiles to auto dealers. Company policy requires that a prenumbered shipping document be issued for each sale. At the time of pickup or shipment,...
-
Explain the relationship between tests of the acquisition and payment cycle and tests of accounts payable. Give specific examples of how these two types of tests affect each other
-
What is the pro forma statement, and how important is it for a business?
-
Briefly compare replacement value to liquidation value of an asset.
-
What do we mean by budgeting, and how would this process serve the firm?
Study smarter with the SolutionInn App