Answer the following problems.
problem 1) prepare a GraphicsProgram subclass that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid.
problem 2) Suppose that you’ve been hired to produce a program that draws an image of an archery target or, if you prefer commercial applications, a logo for a national department store chain.
problem 3) prepare a GraphicsProgram subclass that draws a partial diagram of the acm.program class hierarchy as given below:
problem 4) prepare a ConsoleProgram that reads in a list of integers, one per line, until a sentinel value of 0 (which you should be able to change easily to some other value). When the sentinel is read, your program should display the smallest and largest values in the list.