CS100 M Fall 2003
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 Keyboard class for reading input
- selection statements
- iteration (while, for loops)
- class definition: instance/class variables, instance/class methods, encapsulation (public vs. 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/6
- Homework: Projects 4 and 5, Exercise 2
- Assigned reading: See CS100M-->Notes, up to and including 11/6 (but exclude arrays).
We will give you the names of the methods in the Math and Keyboard classes that you may need on the exam, but we expect you to know how to use these methods.
Statements students may not use: