Question: Need help!! This is for a first-year computer science course using PYTHON language, the code should not be overly complicated as well, thank you! Question

Need help!! This is for a first-year computer science course using PYTHON language, the code should not be overly complicated as well, thank you!

Need help!! This is for a first-year computer science course using PYTHON

Question 3 (9 points.): Purpose: Practice using loops and simple information visualization Degree of Difficulty: Moderate For this question, you will create a Processing program that visualizes placing a simple fast food order at a drive-thru restaurant. Our restaurant in this question serves only one item: hamburgers. Your program should allow the user to select how many hamburgers they want and should update its canvas with pictures of the hamburgers. Your program should have the following specific behaviour: Use a 600x600 white canvas as the backdrop Initially the number of burgers and fries in the order are both O. Pressing the b' key increases the number of burgers in the order by 1: 'V decreases it by 1. Make sure the number of burgers in the order cannot become negative. At all times, the program should visually display the order, i.e. there should be 1 hamburger on the screen for each hamburger in the order. You will need to use loops to do this. Start displaying the burgers near the top-left corner of the canvas and fill up the canvas one row of burgers at a time. If a row fills up, start displaying the items on the next row and continue doing so as needed. Near the bottom of your canvas, also display a textbox stating how many burgers are in the order handle this case. Here is an example of what your program might look like: Your order: 25 hamburgers Figure 3: Sample canvas with 25 burgers in the order. Your burgers don't have to look exactly the same as in the sample, but a reasonable attempt at visual appeal should be made

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 Databases Questions!