Lab #6: loops and "sane" input
This is a one week lab, due no later than midnight, Friday, October 26, 2007.
There are two goals for this lab, which will modify your Lab #5. First, the input to the triangle program will be made reasonable. Instead of having six prompts and reads for the x and y coordinates of the three corner points of the triangle, one prompt and read will be made for all six points. The string containing the six x and y values will be parsed, using the Scanner class. Second, a loop will be introduced to continually prompt and read for three triangle corner points until a special prompt is entered. We will talk about some stategies for this task (also involving Scanner) in class on Monday.
Task #1: Use one prompt and read with a DialogBox to read in the coordinates of the three triangle corner points.
Task #2: Integrate a while statement into program to allow continual reading of corner points until some sentinel value is entered.
