CPSC 111 Sections 6 and 8
Lab 5 (Tuesday, September 26)
Objectives
* Take quiz
* Get ready for test
* Go over submission of assignments
* Review nested ifs
* Cover while loops
* Forwarding email
TAKE QUIZ
LECTURE EXAM 1
1. Declaration of variables
2. Evaluation of conditional expressions
3. Hand trace short program
4. Write short code segments
5. Strings
Submission of assignments
1. Staple printouts (highest grade possible w/o staple from now on: 89)
Could go with out printouts...
2. Follow instructions for documentation of functions
3. Need spacing between operators
-1 for each occurence in program from now on, maximum of 11 will be taken off
x = 5;
cout << "hello";
NOT
x=5;
cout<<"hello";
4. Program header (5 off if it's not correct)
5. Discuss int x,y,z = -1;
6. Indentation
7. Meaningful variable names
8. Asking for input (uniform)
9. Uppercase constants
10. userid is not your soc. sec. no.
11. comments after a statment opposed to before a statment on the previous line.
New material:
1. While loops (syntax and nested design)
2. Legal variable names
Homework:
TBA