Programming in Javascript - Loops and Arrays


Complete the Khan Lessons. This assignment assumes you have completed the lesson that takes you through the Khan Academy tutorials assigned to you. Your teacher will track that you did all of tutorials by looking for the green circles for each tutorial that you will see linked vertically on the right of the Khan tutorial pages. There are points for this assignment for doing the tutorials assigned to you.

  1. Zoo Display. Make a zoo cage with 4 exact copies of your animals in it. Use loops whenever you have repeated code including (but not limited to) a loop to call your drawAnimal function four times and a loop to draw the bars of the cage. Make the cage have a decorative border with repeated patterns as the border - use loops to make the repeated patterns, as in the example shown here.

    Note that there are points in all programs for your use of style: Save this program at Khan with the name lastname_zoo.

  2. Dry Animal. Do the Khan project Make It Rain. Add these features to it: Here is an example output:

    Save this program at Khan with the name lastname_dyAnimal.