I would suggest you work only from your book and personal notes.
Do not ask your neighbor for help on this part 1 exercise.
This will be good practice working with loops and arrays using primitive types.
Required Working Style for Today's Lab:
- From beginning to end you will work in a folder which contains all your work for today's lab.
- Before you leave, you will email me all the files necessary to run your application.
You will see it is a VERY SIMPLE class with one method:
Most/all of the comments have no associated code. I'd like you to fill in the code which belongs below each of the documentation lines provided. Do not delete any comments that are there, just add the appropriate code beneath each. In addition you will find it to your advantage to work your way down the documented sections in order.
For each of the loops, you should consider carefully and use the most appropriate of the three we have discussed (while, for, do-while).
You will start using Scanner today.
You only need to do this once!!!
At the top of the file BEFORE & OUTSIDE the class remember to
import java.util.Scanner;
And then INSIDE the main's {}'s you will declare & construct the scanner.
You only need to do this once!!!
Scanner sc = new Scanner(System.in);
Try out the redirect of standard input to get the scanner info without having to re-type it over and over. To do this create a separate file with just the user entered numbers; no source code. I named my file "input.txt" but you can name it whatever you like. Just be sure to end it with ".txt" Then to use it... type the following at the command line:
java ArrayPracticeClient < input.txt
You may work with a partner but they have to have finished with part 1)
*and*
you must not have worked with them in lab recently and preferably never
before in lab!
Keep it simple. No more than say .... 20 points maximum. And few if any curved lines for now though you may include circles as long as you label the coordinates of the center and radius for each of these on your drawing. Your drawing should use up most of the 800 x 800 coordinates space you are considering and not extend beyond it. If you are having a crisis of creativity and just can't come up with your own drawing, you may work on a house similar BUT NOT IDENTICAL to mine. Yours should have some clear and substantive differences.