Your job is to write an applet that draws a Sierpinski triangle. Think about the following:
Print your Sierpinski program.
Now define a class WriteTest that creates an array of 10 TestQuestion objects. It should read the questions from the standard input as follows: First, it reads a character. If the char is 'm', the next question is multiple choice; it it's 'e', the question is essay. Then it reads the question, then repeats for 10 questions. When it reads a mult choice question, it should create a mult choice object; when it reads an essay question, it should create an essay object. Either way, the object should be stored in the array after its info is read. When all of the data has been read, use a loop to print the questions, numbered, in order, and there's your test! Use the data in testbank.dat to test your program.