Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The question is supposed to be completed in processing 3.0 and in python language. For the fries, it doesn't have to look exactly the same

The question is supposed to be completed in processing 3.0 and in python language. For the fries, it doesn't have to look exactly the same as in the question but must be drawn in canvas.

image text in transcribed

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: fries. Your program should allow the user to select how many fries they want and should update its canvas with pictures of the fries. Your program should have the following specific behaviour . Use a 600x300 white canvas as the backdrop Initially the number of fries in the order is O . Pressing the 'f' key increases the number of fries in the order by 1: 'n' decreases it by 1. Make sure the number of fries in the order cannot become negative. . At all times, the program should visually display the order, i.e. there should be 1 fries on the screen for each fries in the order. You will need to use loops to do this. Start displaying the fries near the top-left corner of the canvas and fill up the canvas one row of fries 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 fries are in the order. . It is okay if the order gets so big that it starts going off the bottom of the canvas: you do not need to handle this case. Here is an example of what your program might look like: nhl in hihnil ih mihil chlohihihihh ohh oh oh oh oh FFFF F F FFF FF FF FF F F nil Lith him in linh tinhh ohhhh ohh oh oh oh nihin F F FFF FIFF FFF F FFFFF nhl hiih hiih oh oh oh F F FF FF FF Your order: 42 fries Figure 3: Sample canvas with 42 fries in the order Your fries don't have to look exactly the same as in the sample, but a reasonable attempt at visual appeal should be made 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: fries. Your program should allow the user to select how many fries they want and should update its canvas with pictures of the fries. Your program should have the following specific behaviour . Use a 600x300 white canvas as the backdrop Initially the number of fries in the order is O . Pressing the 'f' key increases the number of fries in the order by 1: 'n' decreases it by 1. Make sure the number of fries in the order cannot become negative. . At all times, the program should visually display the order, i.e. there should be 1 fries on the screen for each fries in the order. You will need to use loops to do this. Start displaying the fries near the top-left corner of the canvas and fill up the canvas one row of fries 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 fries are in the order. . It is okay if the order gets so big that it starts going off the bottom of the canvas: you do not need to handle this case. Here is an example of what your program might look like: nhl in hihnil ih mihil chlohihihihh ohh oh oh oh oh FFFF F F FFF FF FF FF F F nil Lith him in linh tinhh ohhhh ohh oh oh oh nihin F F FFF FIFF FFF F FFFFF nhl hiih hiih oh oh oh F F FF FF FF Your order: 42 fries Figure 3: Sample canvas with 42 fries in the order Your fries 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

Explain the different types of marketing strategies.

Answered: 1 week ago

Question

Explain product positioning.

Answered: 1 week ago