Javascript | Computer Science homework help

1)   Provide a source code solution (multiple classes using JavaScript) for the following problem using The factory object oriented design pattern: Creation of five different types of vehicles (Utility, Tractor, Car, Truck, Motorcycle). A test program is needed to test the interaction with the factory for creating the vehicle objects.

2)   Provide a source code solution (multiple classes using JavaScript) for the following problem using the Iterator object oriented design pattern: Collection of movie objects with the following attributes:

(a) Title

(b) Release Year

(c) One sentence representing the movie plot

The objects can be created at run-time. The iterator class should implement next() and hasNext() methods for interacting with the movie object collection. A test program is needed to test the interaction with the iterator and movie object collection.

3)   Complete three (3) D3js tutorials of your choosing from https://github.com/d3/d3/wiki/Tutorials. Each project group member must complete at least one D3js tutorial that is independent from other group mem-bers. Copy and paste your source code for each complete tutorial to answer this homework question. Label each of the tutorials with a header for the tutorial.