CSCI A201/A597

Lab Notes 6

Spring 2000


Today we will get ready for the real practical.

Here's what you need to do:

  1. Log into QuizSite (see link below)

  2. Choose MockUp_Practical and solve the problem.
    Submit your work through QuizSite.

  3. When done choose MockUp_Feedback and answer the questions.
    Then please make sure you submit your answers.

Please note: Make sure you specify the section in which you will be taking the real Practical next week.

You will see an option in the MockUp_Feedback section.

MockUp_Feedback can only be submitted ONCE, so be careful.

MockUp_Practical can be submitted 100 times, only the last submission counts.

Next week there will be no Feedback activity, only the Practical, by itself.

Go to QuizSite for the mock-up practical and feedback.


Here's a little extra for those inclined:

frilled.cs.indiana.edu%emacs Border.java
frilled.cs.indiana.edu%cat Border.java
public class Border {
    public static void main(String[] args) {
	int size = Integer.parseInt(args[0]); 
	for (int i = 0; i < size; i++) {
	    for (int j = 0; j < size; j++) {
		if ((j == 0 && i == 0) ||
		    (j == 0 && i == size - 1) ||
		    (j == size - 1 && i == 0) ||
		    (j == size - 1 && i == size - 1)) {
		    System.out.print("+"); 
		} else if (i == 0 || i == size - 1) {
		    System.out.print("--"); 
		} else if (j == 0 || j == size - 1) {
		    System.out.print("|"); 
		} else {
		    System.out.print("  "); 
		} 
	    }
	    System.out.println(); 
	} 
    } 
} 
frilled.cs.indiana.edu%javac Border.java
frilled.cs.indiana.edu%java Border 10
+----------------+
|                |
|                |
|                |
|                |
|                |
|                |
|                |
|                |
+----------------+
frilled.cs.indiana.edu%java Border 3
+--+
|  |
+--+
frilled.cs.indiana.edu%