CS& 141 - Intro. to Computer Programming with Java 5/1.5 (or 1.6) Last Update: 04/19/2010 10:17:26 AM
10:30-11:20 pm Daily, Room 1302, Item 0573, Section 01, 5 credits
Class Documents: Get the Updated Syllabus and the Details and template.txt
Software: Downloads & installation: http://java.sun.com/javase/downloads/index.jsp; http://java.sun.com/javase/6/webnotes/install/ Installing the Java Compiler: SettingEnvVarsForJavaSDK.doc Installing Java 1.5 on a Mac: http://www.entertheden.net/macjava/instructions.html Java 1.5 Documentation: http://java.sun.com/j2se/1.5/docs/api and http://java.sun.com/j2se/1.5.0/docs/
Code2Results: CodeCompileTest.doc, CodeRunJavaProgram.doc Sample: PencilSolution.PDF, Pretty Printing: Printf.htm
Read this explanation: WhatIsThisThingCalledClass.doc Read the Jgrasp Tutorial from UWA
At the command prompt, you may need to set the path to your jdk/bin folder, for example (remember the semicolon)
path %PATH%;"L:\JDK\bin"
in jgrasp, set a path under the settings.
due week 1: FilesFoldersQz.doc. The worksheet refers to a folder on the Share (Q:) drive on a LAN at the college; you must get it while on campus to complete the exercises:
| You must include the following identification for all assignments, in JavaDocs* format: Over all description of the program/class Assignment & Part Course Author Name for solo projects, 2 authors for paired projects Version number, Date For details, see the example to the right and Appendix C and http://java.sun.com/j2se/javadoc/writingdoccomments/ |
/** describe the purpose of the class here, for example: Template file for CS&141 @assignment Pair Program 1: p. 10 # none @course CS& 141 Fall 2009 Shoreline Community College @author Henry Jekyll @author Edward Hyde @version 2.1, 2 May 2009 @see Appendix C, p. 857 Javadoc comments @see java.sun.com/j2se/javadoc/writingdoccomments **/ |
Don't miss Monday, -- participate in a live demonstration of the simulation you will use for assignment 9.
Programming Assignment 9: tic tac toe 141Asgn09TicAnnotated.doc,
Programming Assignment 8 : 141Asgn08W08CO2.doc Softcopy: email due <= midnight before, Hardcopy: due start of class
Programming Assignment 7 : 141Asgn07Personalities.doc, data file: personality.txt Softcopy: email due <= midnight before, Hardcopy: due start of class
Programming Assignment 6: 141Asgn06Names.doc, names.txt, optional names2.txt You will also need DrawingPanel.java (see Assignment 4 below) Softcopy: email due <= midnight before, Hardcopy: due start of class
Programming Assignment 5: 141Asgn05RandomWalk.doc You still need DrawingPanel.java (see Assignment 4 below)
Boolean Worksheets (Week 5 & homework): 141BooleanWorksheet1(tutorial); 141BooleanWorksheet2(tutorial); 141BooleanWorksheet3 (turn in). Softcopy: email due <= midnight before, Hardcopy: due start of class
Programming Assignment 4: "Shapes"; put this file in your working folder: DrawingPanel.java.txt and compile it before compiling your graphics program.m. Triangle example: A04TriangleSample.doc DrawTriangle.java.txt Softcopy: email due <= midnight before, Hardcopy: due start of class
HexadecimalWorksheet.doc, due by Friday week 4 A tutorial on hexadecimal: http://www.lyzrdstomp.com/binary/hex1.html
Programming Assignment 3: "Pi," Softcopy: email due <= midnight before, Hardcopy: due start of class
If you want to use formatted output see this tutorial; otherwise, set your initial estimate to 4.000000000000001 and use tabs ( "\t" ).Programming Assignment 2: "ASCII Art" This is a solo program. Do not speak to anyone else about it or ask anyone for help except the instructor. Softcopy: email due <= midnight before, Hardcopy: due start of class
hw2_expected_output_size8.txt, hw2_expected_output_size12.txt, hw2_expected_output_size16.txt Small picture example. Tested for even number SCALE factor. Duke.javaProgramming Assignment 1: "The Programmer," This is a solo program. Do not speak to anyone else about it or ask anyone for help except the instructor. Softcopy: email due <= midnight before, Hardcopy: due start of class
Sample code to add text to a text file: FileTest.java This code uses command-line input to append text to an existing file. Please read the comments in the file to see which lines are essential -- some are just for tracing.