Shereen Khoja

Assistant Professor of Computer Science

Email: shereen@pacificu.edu

Phone: (503) 352-2008

Office: Strain 203C


CS150 - Introduction to Computer Science I

Section 01

 

Course Syllabus

 

Coding Standards

 

Tentative Course Outline

 

CS150 is a first course in computing and programming fundamentals. The goal of this course is to introduce you to problem solving through programming a computer. No previous computer experience of any type is required, but a deep interest in using one is. In this course, you will learn to program in C++. By the end of this course you should be able to write a program to do anything you want, given enough time and patience.

 

Course Notes and Assignments:

 

                   
WEEK 1
 
Monday
August 30, 2004
High Thoughts Must Have a High Language: pdf ppt
  • Course goals, your expectations and mine
  • A brief history
  • Computer basics
  • Programming languages
Chapter 1
p. 2 - 7
 
Tuesday
August 31, 2004
Lab 1: Getting to Know the IDE: pdf doc
  • Logging on to campus computers
  • Logging onto and using Turing
  • Creating a C++ project
  • Compiling and running a C++ program
  • Modifying a C++ program
 
 
Wednesday
September 1, 2004
Hello World: pdf ppt
  • Your first C++ program
  • C++ comments
  • Preprocessor directives
  • main function
  • Declaration statements
  • Execution statements
p. 21 - 26
Assignment 1 pdf1 pdf2
Friday
September 3, 2004
What Data Do We Have: pdf ppt
  • Declaration statements
  • Variable declarations
  • Primitive data types
  • Identifiers
  • Reserved words
  • Constant declarations
p. 26 - 31
 
WEEK 2
 
Monday
September 6, 2004
NO CLASS
 
 
Tuesday
September 7, 2004
Lab 2: Software Development Process, algorithms and pseudocode pdf
  • Look at a fairly complex problem and determine the different steps
  • Type into the IDE
  • Coding standards
  • Add comments to code
 
 
Wednesday
September 8, 2004
What Actions Do We Have 1 pdf ppt
  • Assignment statements
  • Input statements
  • Output statements
p. 26 - 31
Assignment 1 DUE
Friday
September 10, 2004

What Actions Do We Have 2 pdf ppt

  • Arithmetic statements
  • Modulus operator
  • Operator precedence
  • Operator associativity
  • The string data type
p. 34 - 39
p. 124 - 128
Assignment 2
pdf
WEEK 3
 
Monday
September 13, 2004
Life is Full of Alternatives pdf ppt
  • Equality and relational operators
p. 34 - 39
p. 124 - 128
 
Tuesday
September 14, 2004
Lab 3: Modulus operator and simple if statement pdf
  • Decimal to binary program
  • Coding standards
 
 
Wednesday
September 15, 2004
Life is Full of Alternatives Part 2 pdf ppt
  • Logical operators
  • Simple if statement
Chapter 2
p. 71 - 77
 
Friday
September 17, 2004
Life is Full of Alternatives Part 3 pdf ppt
  • if/else selection structure
  • ?: conditional operator
p. 77 - 79
Assignment 2
DUE
WEEK 4
 
Monday
September 20, 2004
Let Us Repeat Together Part 1 pdf ppt
  • Nested if/else selection structures
  • while repetition structure
Chapter 2
p. 79 - 83
Assignment 3
pdf
Tuesday
September 21, 2004
Lab 4: if statements and while loops pdf
  • Using the debugger
  • Coding standards
 
 
Wednesday
September 22, 2004
Let Us Review pdf ppt
 
Friday
September 24, 2004
Midterm 1
 
 
WEEK 5
 
Monday
September 27, 2004
Let Us Repeat Together Part 2 pdf ppt
  • Counter-controlled repetition
  • Sentinel-controlled repetition
  • Type casting
  • Formatting output
  • Top-down, stepwise refinement
Chapter 2
p. 83 - 98
Tuesday
September 28, 2004
Lab 5: More money pdf
  • Formatting the output
  • Coding standards
 
 
Wednesday
September 29, 2004
for Repetition Structure pdf ppt
  • Assignment operators
  • Increment and decrement operators
  • for loops
p. 102 - 113
Assignment 3
DUE 
Friday
October 1, 2004
switch Selection Structure pdf ppt
  • switch statements
  • cin.get()
  • ASCII values
p. 113 - 119  
WEEK 6
 
Monday
October 4, 2004
do/while Repetition Structure pdf ppt
  • cin.get()
  • ASCII values
  • do/while loops
Chapter 2
p. 113 - 121
Assignment 4
pdf
Tuesday
October 5, 2004
Lab 6:
 
 
Wednesday
October 6, 2004
Nested Repetition Structures pdf ppt
Friday
October 8, 2004
NO CLASS
 
WEEK 7
 
Monday
October 11, 2004
Reading from and writing to files pdf ppt
  • File streams
  • Opening file streams
  • Writing to and reading from file streams
Chapter 14
p. 809 - 819
Tuesday
October 12, 2004
Lab 7: Nested loops and files pdf
 
 
Wednesday
October 13, 2004
More file examples pdf ppt
Assignment 4
DUE
Assignment 5
pdf
Friday
October 15, 2004
More file examples pdf ppt
 
WEEK 8
 
Monday
October 18, 2004
Functions pdf ppt
  • Library functions
  • Programmer defined functions
Chapter 3
p. 170 - 180
Tuesday
October 19, 2004
Lab 8: Using files pdf
 
 
Wednesday
October 20, 2004
More function examples
Assignment 5
DUE
Friday
October 22, 2004
Midterm 2
 
WEEK 9
 
Monday
October 25, 2004
Functions pdf ppt
  • Library functions
  • Programmer defined functions
Chapter 3
p. 170 - 180
Tuesday
October 26, 2004
Lab 9: Using Functions pdf
 
 
Wednesday
October 27, 2004

Functions pdf ppt

  • Passing arguments by value
  • Passing arguments by reference
Friday
October 29, 2004
More functions
 
Assignment 6
WEEK 10
 
Monday
November 1, 2004
Functions pdf ppt
  • More function examples
  • Scope
Chapter 3
p. 170 - 180
Tuesday
November 2, 2004

Lab 10:

 
Wednesday
November 3, 2004
Friday
November 5, 2004

Arrays pdf ppt

  • Declaring arrays
  • Initializing arrays
  • Using arrays
 
WEEK 11
 
Monday
November 8, 2004
Arrays pdf ppt
  • More array examples
  • Passing arrays to functions
Chapter 4
Tuesday
November 9, 2004

 

 
Wednesday
November 10, 2004
Assignment 6
DUE
Friday
November 12, 2004

Arrays pdf ppt

  • More array examples
  • Searching arrays
 
WEEK 12
 
Monday
November 15, 2004
Arrays pdf ppt
  • Random number generation
  • Sorting arrays
Chapter 4
Assignment 7
pdf
Tuesday
November 16, 2004

Lab 11:

 
Wednesday
November 17, 2004
Friday
November 19, 2004
MIDTERM 3
 
WEEK 13
 
Monday
November 22, 2004
Assignment overview
Tuesday
November 23, 2004

Structs pdf ppt

  • Introduction to structures
 
Wednesday
November 24, 2004
NO CLASS
Friday
November 25, 2004
NO CLASS