Yusuf Family Website

Lecture 1 ] Lecture 2 ] [ Lecture 3 ] Lecture 4 ] Lecture 5 ] Lecture 6 ] Lecture 7 ] Lecture 8 ] Lecture 9 ] Lecture 10 ] Lecture 11 ] Lecture 12 ] Lecture 13 ] Lecture 14 ] Lecture 15 ] Lecture 16 ]

CP 107 Lecture 3

The purpose of lecture notes is to outline what the instructor intends to teach and give the student any reading assignments and pre lab exercises to do in preparation for lab.  Student should assume that the material covered and assignments given in lecture notes should help to prepare the student for the lab assignment. 

 

Lecture 3

Continue with chapter 2 from where we left last week. We will study the seven control structures:

Sequence structure
    Built into C++. Programs executed sequentially by default
Selection structures -  three types
    if, if/else, switch
Repetition structures - three types
    while
    do/while
    for
Continue and Break statements

Objectives

bulletTo be able to use the if, if/else and switch selection structures in decision making
bulletTo be able to use the while, do/while and for repetition structures to execute statements in a program repeatedly (Loops).
bulletTo be able to use the break and continue program control statements.
bulletTo understand operator precedence

Course Material

Lecture 3

Slides

 

Assignments for next week

Reading assignment: Read Chapter 3 

Lab assignment 3 is due next week (week four).

 

Home

Questions or comments?  Send mail to MSaleemYusuf@Yahoo.com
Last modified: 09/01/07