| CSCI A201/A597Lab Notes 1 Spring 2000 |
Lab1 survey in QuizSite.
Students need to log in with their IUB username and network ID. If they can't get
in they're either not on the roster, or they don't have a valid IUB network ID.
Please write down their usernames and communicate them to me.
Notepad,
compile it with javac from the command line (DOS window) and run it
with java. Please demo this on the wall projectors if the password
I gave you works.
This is in-lab assignment 1 due at the end of the lab next week
(Jan 20-21, 2000).
You are to code the following five problems and turn them in to your lab coordinator on a floppy at the end of the next lab.
Hello.java program.
Second.java program from
the January 13 lecture notes (which produces the sum of the first 10
integers). From now on when we say "write a program" we mean "create, compile and run".
7 6 5 4 3 2 1 0
1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, ...
(That is, the list of integers starting from zero in which each even integer is swapped with the next larger number).
Remember that to implement a program you go through three steps:
Hello.java)
This creates ajavac Hello.java
.class file (Hello.class)
java command:
java Hello
Note that we don't specify the extension this time around.