CS 1334 Programming Assignment
Assignment #8
Your eighth programming assignment consists of two JS programs. It should compile co
ectly
and produce the specified output. Give meaningful name to the program and submit the link to
eLearning.
Please note that the program should comply with the commenting and formatting rules we
discussed in class.
Pseudocode High level explanation of steps
at the top of program/each function
10%
Source Code Overall design of the program 40%
Source Code Formatting and coding style 20%
Execution Test cases 30%
Program # XXXXXXXXXXpoints
Use transformation functions to create a neighborhood.
Be as creative as possible. Try to include playing area, some mom and pop stores,
a
eque area, some sitting area.
One sample is attached here. It doesn’t have to be an exact replica of this.
Total Points (200 pts)
Program #2 Houses and School 100 points
We have worked on a few fancy drawings using translate(), rotate() and scale(). Use those
examples as reference and write the code to replicate the user's drawing in top-left 100x100 area
like the following: Stretch it horizontally 3 times in the right 300x100 area, stretch it 3 times
vertically in the bottom 100x300 area & draw the image in 3x size in bottom-right 300x300 area.
Save your project & copy the web-link here and complete this assignment. Hints: You can use
mouseDragged event to keep drawing. You can use line(pmouseX, pmouseY, mouseX,
mouseY); keep the points connected. You can use scale(3, 1) to stretch along x axis ONLY and
scale(1, 3) to stretch along y axis ONLY. Please look at the video for more clarity
CS 1334 Programming Assignment
Assignment #8
Program # XXXXXXXXXXpoints
Program #2 Houses and School 100 points