CIS140 Midterm Project Introduction In this midterm project you will write a program that utilizes all of the basic elements of programming we have studied using Processing. Your program will include:...


CIS140 Midterm Project


Introduction


In this midterm project you will write a program that utilizes all of the basic elements of programming we have studied using Processing. Your program will include: variables, control structures, and functions. The goal of this project is to show off what you have learned. Your intention should be to demonstrate as many concepts from the course at one time as you can.


Objectives


At the end of this midterm project, you should be able to demonstrate an understanding of all of the programming concepts we have covered so far.


The Theme:


Your program should draw a city scene. For inspiration, you can see thesehttps://www.123rf.com/photo_45296548_stock-vector-a-vector-illustration-of-city- scene.html https://www.vectorstock.com/royalty-free-vector/city-scene-vector-21783965


Your program must include items such as: at least one street, two cars of different sizes and colors, buildings or houses of different sizes and at different locations, trees, clouds, lamps. You can select different objects but make sure they fit the requirements. Your code must generate the images. You may not use ready-made images


Hints: You can use




  • functions to draw these items. For example: draw_car(int x, int y, int r, int g, int b);


    could draw a car at location (x,y) and with colors (r,g,b).




  • loops to draw multiple items


    Your program should allow the user to draw a “day” or “night” scene. That is, if the user presses “n”, it draws the night scene and if the user presses “d”, it draws the same scene as itis day time. Hint: You can do this by changing the background colors and items that get displayed, based on the key that the user pressed.


    Midterm project Instructions:


    Write a processing program that meets the following requirements:




•Write a multi-line comment at the top of your program with your name, the


assignment, and a brief description of the program




  • Set a window size of at least 800px wide by 800px high




  • Your program should demonstrate these or more of the following concepts:




ouse variables of different types, their names must be descriptive of their valuesouse at least one if or if-else statement
ouse at least one for loop
ouse at least one while or do-while loop


ouse at least ten functions, their names must be descriptive of what they do▪at least eight of them must take input




  • Your program should be as creative and interesting as you can make it - your job is to make me go WOW.




  • Your program should be something totally new - not based on your previous work




  • Modified versions of examples posted to Blackboard or presented in-class will not be


    accepted




  • Run the program. Confirm that programs work demonstrating your changes.




  • Save your source code in a file named yourname_city.pde




  • Take screenshots showing your execution for both day and night. Name


    yourname_city_day.png and yourname_city_day.png Preparing Code for Submission






  • All code should have a comment header with a short description of the program. You should have other comments where appropriate




  • Make sure you have a comment header with your name and student ID




  • Comments must include




oYournameandID
oThe project name and due date
oBrief instructions on how to run and use your program
oHonesty Statement
oCitations of any external resources or significant help from any external


website
oExplanations throughout the code as what the code does/is


•Your code formatting, comments, and naming of variables/functions must attempt to maximize readability, organization, and intention.


Submission:
Submit an archive named midterm_yourName.zip (or .rar), containing the following items


by clicking on the title of this page:
1. Your source code file: the source file (*.pde) with your comments and all instructions.


2. Your screenshot(s) showing that your programs works (either .png or .jpg): day and night versions.


For help with submissions see Submitting Assignments

Nov 02, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here