Computer Science I (CS 135)

Spring 2008

 Back to CS135 Webpage                                   Back to Chang's Homepage

 

NOTE: The design part of the project is due in lab on April 8th.

Date

Lab No.

Lab Materials

Codes

Quizzes & Other Files

Samples

1/22

Lab 0

Introduction to C++ (PDF)

 

Getting Started with Dev C++.pdf

patternPrinter.cpp

1/29

Lab 1

Data Types and Simple Functions (PDF)

Given: prettyPrint.cpp

Solutions: ddrScore.cpp

bbTimer.cpp

Functions.doc

How to Save & Print the Program Results.pdf

prettyPrint.cpp

GameScoring.exe

NeedforSpeed.exe

ex1.cpp

2/5

Lab 2

Functions and Data Casting (PDF)

ddrScore.cpp

bending.cpp

Functions-Definitions.doc

exercise_in_lab.doc Key: pizza_exercise.cpp*

quiz1.pdf

DDR2.exe

Bending.exe

labquiz1.cpp

2/12

Lab 3

Function Scope and Random Number Generator (PDF)

Given: golf_main.cpp

ddrScore.cpp

golf.cpp

Functions- common mistakes.doc

Key: quiz1_key.pdf

golf.exe

ddrScore.exe

Global_Local_Variables.cpp

RandomNumber.cpp

2/19

Lab 4

Selection – If Statement (PDF)

bender.cpp

pongBonus.cpp

Selection- Boolean logic.doc

Selection- If-else&Switch.doc**

SelectionExample.cpp

quiz2.pdf

labquiz2.cpp

labquiz2_solution.cpp

2/26

Lab 5

File I/O & Types of Errors (PDF)

 

File IO Input.doc

File IO Output.doc

infile.cpp

numbers.txt

outfile.cpp

3/4

Lab 6

Selection – Switch Statement & File I/O (PDF)

Given: filePrintFormatted.cpp

appetizer.txt

main.txt

dessert.txt

Selection- If-else&Switch.doc**

Worksheet 1- IFELSE.doc

Worksheet 2 - Selection.doc

rest_menu_cd.exe

SelectionExample.cpp

 

3/11

Lab 7

Repetition – While/For Loops & Referencing Parameter

(PDF)

names.txt

 

subjects.txt

Data Directory

CS135_Exam1_S08_KEY.pdf

Repetition- C++ (while).doc

For loops C++.doc

Compound Assignment-Shorthand notations in C++.doc

Repetition- simple code examples (for).doc

Repititions (while , do..while, for).doc

3/18

 

Project1

Project 1 and Curses Library

(PDF)

Design Sample

Arrays 1-D - basics.doc

Arrays 1-D - indexing.doc

Arrays 1-D - initialization + operations on arrays.doc

Arrays 1-D - passing array to function.doc

Sample Windows executable

cursesIntro.cpp

4/1 & 4/8

Project1

Project 1: Design Part

(PDF)

DesignGradingOutline

***New: ProjectGradingOutline.pdf

Functions pass by reference.doc

Functions pass by reference vs. pass by value.doc

curses_Moveball.cpp

color.cpp*

4/15

Lab 8

2D Arrays

(PDF)

a5In.txt

Arrays 2-D - basics.doc

Arrays 2-D Passing arrays to functions.doc

Arrays 2-D - simple code example.doc

4/22

Final Project

Final Project & Sorting Algorithm

(PDF)

 

 

selsort_dmo.cpp

* Simple example code of using color in curses.

** Same files.

*** Please check for the project code grading outline!

Back to CS135 Webpage                                   Back to Chang's Homepage

Send mail to chang@cse.unr.edu with questions or comments about this web page.
Copyright © 2008 Chang JIA
Last modified: 02/20/08