7A
Every place on earth has an elevation either above or below sea level from Mount Everest (29,035 feet above sea level) to the Challenger Deep in the Mariana Trench (36,070 feet below sea level)

Write an application (A program that has a main methods) called SeaLevelProcessor to read a collection of integers, each representing the the distance above or below sea level (elevation) of a point on the earth. The input will terminate when the user enters a non-integer.
Use this prompt: System.out.print("Enter the sea level or Q to quit: ");
Note: you will actually quit on any string that can not be converted to an int.
Do the following:
Only print the numbers if at least 1 integer was entered. Otherwise print "No values entered"
You will read the inputs one at a time and do all the processing as you go. No Arrays for this
The outputs should be on separate lines and in this order
Do not initialize the minimum to some negative number. Initialize to the first input so that the algorithm will work as we discover deeper and deeper places on earth.
For the draft, read the numbers and print them, one to a line. Quit when the input can not be converted to a int. (That means hasNextInt() returns false.) Use the prompt given above. After exiting the loop, print "All done" (only in the draft)
7B
Complete the application RandomSquares which uses a loop to draw 25 squares with random length sides at random locations. Make the x coordinate a random number between 0 (inclusive) and 200 (exclusive), Make the y coordinate a random number between 0 and 300 (exclusive). This x,y is the upper left hand corner of the rectangle (square). Make the length of the sides a random value between 20 (inclusive) and 100 (exclusive). Declare and use constants for:
Some constants are already defined for you. You do the rest
In the starter file, I have created a Random object for you with a seed. Be sure to use it. Because of the seed, the Random object will produce the same sequence of numbers every time the program is run so your drawing will always look the same (and will pass Codecheck). Do not change the seed.
Generate the random values in this order: x coordinate, y coordinate, length of the side.
You must use a loop. Do not have 25 lines of code each of which draws a square
Draw the squares in green. After you have drawn all the squares, fill the largest square with blue. Use the predefined colors from the Color class. If more than one square has the largest side, use the first one with that side as the largest.
You will need to import Dr. Horstmann's graphics package into your Bluej project.
For the draft, draw one random square in green using the predefined color from the Color class.
Updated Oct 18: I made a mistake with what I have asked you to do in the draft. It asks you to create random numbers, but we have not covered that topic yet. So I am going to give you the lines of code you need to get x, y, and the length. Assuming you have defined the constants, use this:
int x = gen.nextInt(MAX_X);
int y = gen.nextInt(MAX_Y);
int length = gen.nextInt(MAX_LENGTH - MIN_LENGTH) + MIN_LENGTH;
7C
Write an application called Trianlgle (That means it has a main method) to ask the user for a positive integer. Keep asking until he correctly enters a positive integer. Do not throw an exception if the user enters a non-integer. Just consume the bad data and ask again.
Updated Sept 22: Notice that the I accidently misspelled the word "Triangle" You will have to use this misspelling to pass Codecheck
Here is the prompt: System.out.print("How many rows in the triangle? ");
Print the integer.
Then using plus sign (+), display a filled isosceles triangle of the given number of rows. That means if the integer is 4, there will be four rows and the output will look like this - with the last row starting at the left edge:

Use nested loops
For the draft, get the positive number and print it