CS100 M Spring 2005
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 statement
- iteration (while, for loops)
- class definition: instance/class variables, instance/class methods, modifiers (public, private)
- object instantiation, references and alias
- method implementation and invocation
- method overloading
Students are responsible for all material covered in lectures, sections/labs, homework, and the assigned readings:
- Lecture and section (labs): up to and including 4/13
- Homework: Projects 4 and 5
- Assigned reading: See CS100M-->Lecture Materials, up to and including 4/13
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: