Create an apple tree (be consistent with how a tree look like – I did two large ellipses one with more width than height and the other just the opposite) with 4 – 5 apples spread around the tree. Use...


Create an apple tree (be consistent with how a tree look like – I did two large ellipses one with more width than height and the other just the opposite) with 4 – 5 apples spread around the tree. Use conditional statements and the mousePressed function to make the apples fall to the ground when the tree trunk is pressed



Required: (NOTE---these are not precise steps you have to follow in order. Rather, they are objectives your program must meet.)


1. Tree and apples appear in the foreground (in front of the horizon made by the ground). HINT: use a rect to make the ground ( set the ground as being the line where the ground meets the horizon). (8 pts)


2. Clicking the mouse makes the apples fall. (8 pts)


3. ONLY clicking the trunk (no other section of the drawing) makes the apples fall. (8 pts)


4. Clicking the trunk again makes the apples reappear in the tree. (8 pts)


5. The apples stop falling once they reach the ground (they do not fall all the way off the sketch window). (8 pts)


6. Runs without errors. (50 pts)


7. Good programming structure, use of comments, etc. (10 pts)




CSCI 203, Spring 2019 Assignment 3, Due March 20th by 11:59pm This assignment tests your understanding of the conditional structures from Chapter 4. Reference the examples in the slides for help, especially slides 16 – 23. Directions: Open Processing and create a new file. Once opened, go to File Save As and rename the file Assignment3_YourName. Create an apple tree (be consistent with how a tree look like – I did two large ellipses one with more width than height and the other just the opposite) with 4 – 5 apples spread around the tree. Use conditional statements and the mousePressed function to make the apples fall to the ground when the tree trunk is clicked. Required: (NOTE---these are not precise steps you have to follow in order. Rather, they are objectives your program must meet.) 1. Tree and apples appear in the foreground (in front of the horizon made by the ground). HINT: use a rect to make the ground ( set the ground as being the line where the ground meets the horizon). (8 pts) 2. Clicking the mouse makes the apples fall. (8 pts) 3. ONLY clicking the trunk (no other section of the drawing) makes the apples fall. (8 pts) 4. Clicking the trunk again makes the apples reappear in the tree. (8 pts) 5. The apples stop falling once they reach the ground (they do not fall all the way off the sketch window). (8 pts) 6. Runs without errors. (50 pts) 7. Good programming structure, use of comments, etc. (10 pts) Submission: 1. Save your work with the naming format: Assignment3_YourName. 2. Zip the saved file and upload it to Blackboard under Assignment 3. CSCI 203, Spring 201 9 Assignment 3 , Due March 2 0th by 11:59pm This assignment tests your understanding of the conditional structures from Chapter 4. Reference the examples in the slides for help, especially slides 16 – 23. Directions: Open Processing and create a new file . Once opened, go to File à Save As and rename the file Assignment 3 _YourName. Create an apple tree (be consistent with how a tree look like – I did two large ellipses one with more width than height and the other just the opposite) with 4 – 5 apples spread around the tree. Use conditional statements and the mousePressed function to make the apples fall to the ground when the tree trunk is clicked. Required : (NOTE --- these are not precise steps you have to follow in order. Rather, they are objectives your program must meet.) 1. Tree and apples appear in the foreground (in front of the horizon made by the ground). HINT: use a rect to make the ground ( set the ground as being the line where the ground meets the horizon) . (8 pts) 2. Clicking the mouse makes the apples fall . (8 pts) 3. ONLY clicking the trunk (no othe r section of the drawing) makes the apples fall . (8 pts) 4. Clicking the trunk again makes the apples reappear in the tree . (8 pts) 5. The apples stop falling once they reach the ground ( they do not fall all the way off the sketch window ) . (8 pts) 6. Runs without e rrors. (50 pts) 7. Good pro gramming structure, use of comments, etc. (10 pts) Submission: 1. Save your work with the naming format: Assignment 3 _YourName . 2. Z ip the saved file and u pload it to Blackboard under Assignment 3 . CSCI 203, Spring 2019 Assignment 3, Due March 20th by 11:59pm This assignment tests your understanding of the conditional structures from Chapter 4. Reference the examples in the slides for help, especially slides 16 – 23. Directions: Open Processing and create a new file. Once opened, go to File  Save As and rename the file Assignment3_YourName. Create an apple tree (be consistent with how a tree look like – I did two large ellipses one with more width than height and the other just the opposite) with 4 – 5 apples spread around the tree. Use conditional statements and the mousePressed function to make the apples fall to the ground when the tree trunk is clicked. Required: (NOTE---these are not precise steps you have to follow in order. Rather, they are objectives your program must meet.) 1. Tree and apples appear in the foreground (in front of the horizon made by the ground). HINT: use a rect to make the ground ( set the ground as being the line where the ground meets the horizon). (8 pts) 2. Clicking the mouse makes the apples fall. (8 pts) 3. ONLY clicking the trunk (no other section of the drawing) makes the apples fall. (8 pts) 4. Clicking the trunk again makes the apples reappear in the tree. (8 pts) 5. The apples stop falling once they reach the ground (they do not fall all the way off the sketch window). (8 pts) 6. Runs without errors. (50 pts) 7. Good programming structure, use of comments, etc. (10 pts) Submission: 1. Save your work with the naming format: Assignment3_YourName. 2. Zip the saved file and upload it to Blackboard under Assignment 3.
Mar 19, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here