Week 1: January 26, 28 and 30, 2004
Week 3: February 9, 11, and 13, 2004
Site IP addresses -------------------------------------------------- wam.umd.edu 128.8.10.141 128.8.10.142 128.8.10.143 glue.umd.edu 128.8.10.68 128.8.10.71 --------------------------------------------------
Week 4: February 16, 18 and 20, 2004
Unix Commands -------------------------------------------------------------------------------- 1. cd <-- change to home directory 2. cd file1 <-- change to directory file1 3. ls and ls -ls and ls -tl <-- list contents of a directory 4. mkdir file1 <-- make a directory called file1 5. rmdir file1 <-- remove directory file1 6. cp file1 file2 <-- copy file1 to file2 7. mv file1 file2 <-- move file1 to file2 -------------------------------------------------------------------------------- Text editor commands -------------------------------------------------------------------------------- 1. vi filename <-- use vi editor to change contents of filename. For example, the command sequence: prompt >> cd ../pub prompt >> vi Welcome.html prompt >> vi resume.html prompt >> vi australia.html moves your shell to the public directory and then systemantically creates the HTML files for your home page, resume and trip page. Notice that each file name has the "html" extension -- web browsers need this information. The class reader contains a list of basic editor commands. --------------------------------------------------------------------------------
Week 9: March 15, 17, and 19, 2004
Week 10: March 22, 24, and 26, 2004
Week 12: March 29, 31. April 2, 2004
Week 14: April 12, 14, and 16, 2004
Week 15: April 19, 21 and 23, 2004
DecimalFormat formatPop = new DecimalFormat( "0000000" ); String output1 = formatPop.format( fPop ); DecimalFormat formatFlow = new DecimalFormat( "00.0" ); String output2 = formatFlow.format( fWaterFlow ); System.out.println(" " + output1 + " " + output2 );
The abbreviated output is as follows:
prompt >> java WaterFlow Water Flow Computation ---------------------- Population Q(p) (m^3/min) ====================== 0001000 03.8 0002000 05.4 0003000 06.6 0004000 07.6 0005000 08.4 .... lines of output removed ..... 0900000 81.1 1000000 83.5
Week 16: April 26, 28 and 30, 2004
Week 17: May 3, 5 and 7, 2004
Week 18: May 10, 2004
Final Exam: May 17, 8.00am-10.00am. The exam will be open book and open notes. There are three questions for a total of 80 points. The first is on object-oriented program development and a few basic things about Java. Two and three are Java programs followed by multi-part questions (just like midterm 2).
Developed in August 2004 by Mark Austin
Copyright © 2004, Department of Civil and Environmental Engineering,
University of Maryland