Write programs as projects on Khan Academy, Need four easy Programs done on my Khan Academy by 12:00 Am

profilePluto23
ExerciseSet1JavaScript1-Fall2018.pdf

INSS 250.001 Homework #2 September 5, 2018

Write programs as projects on Khan Academy. Save your projects as “Homework #1 – XXXXX”, where

XXXXX is your last name. Note: to receive full credit you must submit your assignment on Khan Academy

as a project and turn in a printed copy of your code.

Assignment due: September 13, 2018 at 9:30 AM. Submit a printed copy of your code along with screen

shots for task 1 and 3. You are to submit your assignment at the beginning of class. Note: print your

homework before coming to class, and if you are submitting more than a single sheet of paper staple

your pages…BEFORE COMING TO CLASS. Points will be deducted for late assignments or multi-sheet

assignments that are not stapled.

Programming Task 1:

Write your name one letter at a time. Enclose each letter in your first name in a separate rectangle,

enclose each letter in your last name in a separate ellipse. Your output should look like the following

example, except use your name rather than mine:

Programming Task 2:

Write a program to randomly change the color of the canvas automatically. Make it so that the color

changes every second. Hint: use the documentation to read about random numbers and frame rates.

INSS 250.001 Homework #2 September 5, 2018

Programming Task 3:

Write a program to draw a house that resembles the one shown below.

Programming Task 4:

1. Using variables make your house move across the canvas, as if you were looking at the house in

a moving car. Modify the house that you created in problem 2 above to animate it. Introduce a

variable that will make it look like you are seeing the house as you drive by it (i.e., it moves

horizontally). Set up your code so that your house appears to move smoothly across the canvas

without leaving a smeared trail.