C/C++ Programming
CIS-54 Section 59461-101
Lecture T210 6:00pm - 7:50pm Login to Moodle
Lab T209 8:00pm - 10:00pm
Instructor: Dan McElroy
e-mail: Dan.McElroy@sjcc.edu
Office Hours - Room T410
Course Syllabus (Green Sheet-HTML)
Course Syllabus  Visual C# How to Program 2008 7/e
Book: C++ How to Program 7/e ISBN:0-13-611726-0

Handouts and other Goodies
ASCII Chart
phony.411 data file
wordcnt.txt data file
Microsoft .NET Express Edition (2008)
Get Microsoft .NET Professional (2-week delay)
Mono: Run .NET programs on Linux, Unix
Free Windows C++ compiler (8 Mb). NOTE: YOU need to prompt the user to press a key, and then read the keyboard at the end of your program to prevent the DOS box from closing as soon as your program ends.
 

COURSE OUTLINE (subject to change)

Week
Date

Lecture Topic
Chapter numbers refer to
C++ How to Program 7/e
Lab Assignment
Page numbers refer to
C++ How to Program 7/e
Homework
Page numbers refer to
C++ How to Program 7/e
Points this week
Week 1
Feb 1
Due
Feb 8

Class Orientation
Chapter 1 Intro to Computers

Operating Systems, C/C++

Program Design

Paycheck Program Copy the code into a Word document and submit using Moodle. (10 points)

Paycheck project code

Read Chapter 1 and do the Self-Review Exercises. Do not turn in the Self-Review Exercises for any of the chapters.

Answer questions from Exercises 1.4 through 1-11 pages 36-37. Submit using Moodle. (10 points)

20
Week 2
Feb 8
Due
Feb 15

Chapter 2 Visual C++ IDE
Help, Variables

Program Design

Largest-Smallest Exercise 2.23 page 66
Odd-or-Even Exercise 2.24 page 66.
Copy the code for each program in to a Word document and submit using Moodle. (10 points each)

Read Chapter 2 and do the Self-Review Exercises.

Answer questions from Exercises 2.7 through 2.15 pages 64-65. Submit using Moodle. (10 points)

30
Week 3
Feb 15
Due
Feb 22
Chapter 4 Control Statements: Part 1
Control Structures, if.else, while, loops, ++/--
Gas Mileage Program Exercise 4.13 page 156. Copy the class code, the test application, and a screen-shot showing your program has correctly processed three sets of data into a Word document and submit using Moodle. (20 points)

Read Chapter 4 and do the Self-Review Exercises.

Answer questions from Exercises 4.11 and 4.12 pages 155-156. Do not use the computer to find answers to these problems. Submit using Moodle. (10 points)

30
Week 4
Feb 22
Due
Mar 1
Chapter 5 Control Statement: Part 2
for do..while, switch, break, continue, Logical Operators
Total Sales Program Exercise 5.14 page 204. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 5 and do the Self-Review Exercises.

Answer questions from Exercise 5.4 page 202. Submit using Moodle. (10 points)

30
Week 5
Mar 1
Due
Mar 8
Chapter 6 Functions and Recursion
Scope, Math Library, Passing parameters, Function Prototypes, Random numbers, Call stack
Parking Program Exercise 6.12 page 273. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 6 and do the Self-Review Exercises.

Answer questions from Exercise 6.11 page 272. Submit using Moodle. (10 points)

30
Week 6
Mar 8
Due
Mar 15
Chapter 7 Arrays and Vectors
for-statement, passing arrays, multidimensional arrays, command-line args
Airline Reservation Program Exercise 7.20 page 337. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 7 and do the Self-Review Exercises.

Answer Exercises 7.6 through 7.9 pages 334-335. Submit using Moodle. (10 points)

30
Week 7
Mar 15
Due
Mar 22

Chapter-8 Pointers
pointer expressions, pointer arithmetic, relation between pointers and arrays, arrays of pointers, pointer-based string processing, function pointers.
 
6:00-7:50
8:00-9:50
Java Lecture Lab
C++ Lab (attendance
is optional)
Lecture

Tortoise and Hare Exercise 8.12 pages 384-385. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (30 points)

Read Chapter 8 and do the Self-Review Exercises.

Answer questions from Exercises 8.7 through 8.11 pages 383-384. Submit using Moodle. (10 points)

40
Week 8
Mar 22
Due
Mar 29
Chapter 3 Intro to Classes and Objects
Objects, Methods and Parameters
Invoice Program Exercise 3.13 page 107. Copy the class code, the test application and a screen-shot showing the results of your program execution into a Word document and submit using Moodle. (10 points)

Read Chapter 3 and do the Self-Review Exercises.

Answer questions from Exercises 3.5 through 3.10 page 107. Submit using Moodle. (10 points)

20
Week 9
Mar 29
Due
Apr 5

Chapter 9 Classes and Objects
reference

Chapter 10 Classes Part 2
this

Rational Number Program Exercise 9.6 page 427. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapters 9 and 10. Do the Self-Review Exercises.

Answer the question from Exercises 9.3 page 426. Submit using Moodle. (5 points)

25
Week 10
Apr 5
Due
Apr 12
Chapter 12 Inheritance
base and derived classes, constructors w/ inheritance
Savings Account Program Exercise 10.7 page 463. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 12 and do the Self-Review Exercises.

Answer questions from Exercises 10.3 though 10.5 pages 462-463. Submit using Moodle. (10 points)

30
Week 11
Apr 12
Due
Apr 26
Chapter 11 Operator Overloading
 
6:00-7:50
8:00-9:50
C++ Lecture Lab
Java Lab (attendance
is optional)
Lecture
Complex Number Program Exercise 11.8 pages 514-516. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 11 and do the Self-Review Exercises.

Answer question from Exercises 11.6 page 514. Submit using Moodle. (5 points)

25
Week 12
Apr 19

SPRING BREAK
Apr 18 - Apr 24

SPRING BREAK
Apr 18 - Apr 24
SPRING BREAK
Apr 18 - Apr 24
 
Week 13
Apr 26
Due
May 3

Chapter 13 Polymorphism
abstract classes

Package Shipping Program Exercise 12.9 page 570. Copy the code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 13 and do the Self-Review Exercises.

Answer questions from Exercises 13.3 through 13.8 page 624. Submit using Moodle. (10 points)

30
Week 14
May 3
Due
May 10
Chapter 16 Exception Handling
Chapter 14 Templates
 
6:00-6:50
7:00-9:50
C++ Lecture Lab (attendance
is optional)
Java Lab (attendance
is optional)
Lecture & Lab
Polymorphic Package Shipping Program Exercise 13.15 page 624. Copy the code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapters 16 and 14. Do the Self-Review Exercises.

Answer questions from Exercises 16.18 through 16.22 page 711. Submit using Moodle. (10 points)

10
Week 15
May 10
Due
May 17
Chapter 15 Stream I/O
 
6:00-7:50
8:00-9:50
Java Lecture Lab
C++ Lab (attendance
is optional)
Lecture
Point Class Exercise 15.15 page 682. Copy the class code, the test application, and a screen-shot showing your program execution into a Word document and submit using Moodle. (20 points)

Read Chapter 15 and do the Self-Review Exercises.

Answer questions from Exercise 15.6 page 681. Submit using Moodle. (10 points)

30
Week 16
May 17
Due
May 24
Chapter 17 File Processing
sequential access files, random access files
File Matching Program Exercise 17.7 page 750-751. Copy the code and a screen-shot showing your program execution into a Word document and submit using Moodle. Do not copy the output file into the Word document. (40 points)

Read Chapter 17 and do the Self-Review Exercises.

Answer questions from Exercise 17.5 and 17.6 page 750. Submit using Moodle. (10 points)

50
Week 17
May 24
Homework
Due
May 27

Chapter 18 Strings

FINAL EXAM

FINAL EXAM
(80 points)

Read Chapter 18 and do the Self-Review Exercises.

Answer questions from Exercises 18.4 through 18.6 page 779. Submit using Moodle. (10 points)

90
  TOTAL POINTS 390 150 540