20-ECES-121-003
CS1 Course Website for Section 3
Winter 2004


Instructor: Fred Annexstein

Office: 889 Rhodes

(Office Hours: Tuesday and Thursday 1:00-2:00PM, and by appointment)

Phone: 556-1807

Email: fred.annexstein@uc.edu

Web: http://www.ececs.uc.edu/~annexste


Course Information

 Exam Schedule:

Midterm Exam: Thursday February 12 in class
                   Covers material in Chapters 1-3, course lectures, and labs
                   Here is a Study Sheet.

Final Exam: The final exam for all four sections of CS1 will be held on
                                 Tuesday, March 16th, from
6:00-8:00 p.m. in Old Chem 601.  

 

 


Important Information and News

Laboratory Assignments

Lab #2 for Jan 14

Lab #3 for Jan 21

Lab #4 for Jan 28
            You will need this file for the lab Fig03_10.cpp

Lab #5 for Feb 4

Lab #6 for Feb 11

Lab#7 for Feb 18

Lab#8 for Feb 25

Lab#9 for March 3
            Your may find the reverse function useful reverse.cpp

Lab#10 for March 10
            In the lab today we will work with client code using your Rational implementation done in homework. Specifics will be discussed at the beginning of the lab.
Your client should compute two series based on input of integer N.
a) Harmonic Number h(N)= 1+ 1/2 + 1/3 + 1/4 + ... + 1/N
b)  Approximation of pi: pi(N) = 4(1 - 1/3 + 1/5 - 1/7 + 1/9 - .. + 1/N)
Your client should print both the fraction and the float values.      

 

Homework Assignments

Homework #1  Tues, Jan 13: Problems 1.16-19, 22, 23*, 31*, 37*

 

Homework #2 Tues, Jan 20  Problems 2.14, 15, *23, 25, 26, *28

 

Homework #3 Due in Digital Dropbox (DD) on Tuesday Jan 27 by 5:00PM

Please put your group name and the assignment number in the comments section of the DD.
            Each assigned problem should be done as a standalone C++ program in a form that will compile and run.
                       2.29, 2.30, 2.31, 2.38, 2.40, 2.55, 2.63, 2.65

Submission requirement:

Each group should create a single archive using an application such as WinZip. Submit one zip file per group to the DD.

Homework #4  Due in Digital Dropbox (DD) on Tuesday Feb 3 by 5:00PM

Please put your group name and the assignment number in the comments section of the DD.
            Two standalone C++ programs:

Program #1 -- 3.35,36,37

Program #2 -- 3.38,39

Homework #5 Due in class. Individually handwritten, problems 3.1-3.25. Graded on effort rather than correctness.

                        Objective: used as preparation for the midterm.

Homework #6 Due in DD on Tuesday Feb 17 by 5:00PM. Problems 4.24 and 4.25 from the text. You are to submit a write-up answering the

            Experimental questions and you should submit two programs – one using the accessibility heuristic and one using the brute-force method.

            You should work in groups of two. Here is a sample solution Knightstour.exe

 

Homework #7 - Written assignment to be completed in groups (2-4 people per group), No working programs are required. Due in DD on Tuesday March 2 by 5:00PM

5.20, 21, 22, 23, 24, 25, 30

Homework #8 – Problem 6.7 from textbook - programming assignment to be completed in groups of 2.. Due in DD on Tuesday March 9 by 5:00PM.

 

 

 

Grades webposting

Course TA:
Pranay Desai


Office Hours for all TAs (Rhodes Hall):

P. Desai   (811F)  Mon. 10:30-12:30

A. Sinha  (805D)   Thurs. 1:00-3:00

H. Bian  (811F) Wed. 11:00-1:00
L. Mayfield  (805D) Wed. 1:00-3:00

 

Various Course Related Documents

·  Here is the Book webpage.

·  Winter quarter lab schedule: click here.

·  General help for the labs: click here.

·  For email help: click here.


Powerpoint Slides.

 

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 


Course Notes

Day

Date

Class Topic or Event/Activity

Assigned Text Reading

 Text Readings

 Jan 6

Classes Begin, Intro to C++

Lecture 1 notes

 Chapter 1

 Jan 8

Basic C++ Programming

 

Lecture 2 notes

 Chapter 2

Jan 13

Simple C++ Program Control

Selection

Lecture 3

  To page 124

Jan 15

Intro to Repetition

Lecture 4

 

 

 

 

 

 Jan20

Datatypes

File IO and Switch Construct

 

 DataTypes

 

 To page 155

 Jan 22

Essentials of Counter-controlled loops and Logic Operations loops

 Lecture 5,  Table.cpp

 

 

I/O Handling and Logic Operations

 

 

 

 

 

 Chapter 3

 

Introduction to Functions

 

 

 Jan 27

Random Number Generation

More on Functions

Lecture 6

 

 

Storage Classes and Scope Rules

Lecture 7

 

 Jan 29

Recursive and Inline Functions

 Notes

 

 

 

 

 

 

 

 

 

Feb 3

Parameter Passing, Overloading, and Templates

 Lecture 8, Lecture 8+,

 

Feb 5

Midterm Review

 

 

 

 

 

 

Feb 10

Intro to Arrays

Lecture 9

 

Feb 12

Midterm Exam

 

 

 

 

 

 

Feb 17

Searching arrays

 Lecture 10

 

Feb 19

Multi-subscripted arrays and functions

 Lecture 11

 

 

 

 

 

Feb 24

Pointers - Card Dealing Example

 Lecture 12

 

Feb 26

Pointers and Functions

 Lecture 13

 

Mar 2

 Strings

 Lecture 14

 

Mar 4

String handling

 

 

Mar 11

Review for Final

 

 

 

 

 

 

 

,

 

 

 

· 


Sample Programs

Return to Dr. Annexstein's homepage