CS100 M Fall 2004
Prelim 3 Topics
You will use Java only in Prelim 3--do not write any MATLAB code.
Topics/Ideas
- variable types, casting, generating random numbers using Math.random()
- using methods in the Math class
- using methods in the JLiveRead class for reading input
- selection statement
- iteration (while, for loops)
- class definition: instance/class variables, instance/class methods, modifiers (public, private)
- method implementation and invocation
- object instantiation, references and alias
- method overloading
Students are responsible for all material covered in lectures, sections, homeworks, and the assigned readings:
- Lecture and section (labs): up to and including 11/4
- Homework: Projects 4 and 5, Exercise 3
- Assigned reading: See CS100M-->Notes, up to and including 11/4
We will give you the names of the methods in the Math and JLiveRead classes that you may need on the exam, but we expect you to know how to use these methods.
Statements students may not use: