Question: Hi, need this done in python processing 3.3.6 For this question, you will create a Processing program that visualizes placing a simple fast food order
Hi, need this done in python processing 3.3.6
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 two items: hamburgers and fries. Your program should allow the user to select how many of each item they want and should update its canvas with pictures of the appropriate number of items.
Your program should have the following specific behaviour:
Use a 600x600 black canvas as the backdrop
Initially the number of burgers and fries in the order are both .
Pressing the "b" key increases the number of burgers in the order by ; "v" decreases it by . Make sure the number of burgers in the order cannot become negative.
Pressing the "f" key increases the number of fries in the order by ; "d" decreases it by . Again, no negatives.
At all times, the program should visually display the order, i.e. there should be hamburger on the screen for each hamburger in the order and similarly for the fries. You will need to use loops to do this.
Startdisplayingtheitemsintheordernearthetop-leftcornerofthecanvasand llupthecanvasone row of items at a time. If a row lls up, start displaying the items on the next row and continue doing so as needed.
If there are both burgers and fries in the order, the burgers should be displayed rst. Begin displaying fries on a separate row from the burgers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
