CS1112 Fall 2012
Prelim 1 Topics
Topics/Ideas
- Scalar variables and operations
- Selection (conditional)
- Iteration (while-loop, for-loop), including nested loops
- User-defined functions
- 1-dimensional array (vector)
- MATLAB predefined (built-in) functions (those used in lecture/discussion/projects)
- good programming style
Students are responsible for all material covered in lectures, discussions,
homework, and the assigned reading:
- Lecture: up to and including Lecture 11,
plus the first example (conclusion of polygon smoothing) in Lecture 12
- Discussion: up to and including Exercise 5,
plus the review questions on vectors in Exercise 6
- Homework: Projects 1, 2, and 3
- Assigned reading: See CS1112-->Lecture Materials, up to and including Lecture 11
(Chapters 1-3, 5 and 6)
Examples on how to use selected MATLAB predefined (built-in) functions
will be given on the exam.
Write scripts and functions as specified in each exam question;
specifically, write functions and subfunctions only if they are requested.
Matlab commands that students may not use: