CS 23021: Laboratory


Problem Solving with C++, Walter Savitch


Many thanks to Mike Collard Ph.D. and Dale Haverstock, Kent State University for Lab1 and Lab2. Thanks to Shannon Steinfadt for her reviews.
Many thanks to Rahman Tashakkori, Ph.D.,  Appalachian State University ,Boone, NC 28608
for the Lab Manual.

Labs have been modified, corrected and revised by Angela Guercio

This week Lab

HERE
Lab
Title
Lab 1 Title: Programming Environment
         Experiments
         Lab Notebook Sample
         Lab Report
Lab 2

Title: Introduction to Programming
         Getting started
         Activity 2.1 - Introduction to VIM
         Post Lab - Write a C++ program using VIM
         PreLab3 - Preparation for Lab 3

Lab 3 Title: C++ basics - Flow of Control
         Activity 3.1 - Variables and Assignments
         Activity 3.2 - Simple Flow of Control. if Statement. if ... else Statement
         Activity 3.3 - Simple Flow of Control. while ... loop Statement. do ... while Statement 
         Activity 3.4 - Simple Flow of Control. Conditional while and do ... while loops 
         Post_lab - Computing the Cost of a Phone Call
Lab 4 Title: More flow of control
         Pre_lab
         Activity 4.1 - Boolean Expressions
         Activity 4.2 - if ... else if ... else and switch statements
         Activity 4.3 - for statement
         Activity 4.4 - Blocks and scope of a variable in a block
         Post_lab - A Calendar
Lab 5 Title: Procedural Abstraction and Functions That Return a Value
        Activity 5.1 - Predefined Functions
        Activity 5.2 - Type Casting
        Activity 5.3 - Functions that return a value
        Activity  5.4 - Function Overloading Procedural Abstraction
        Post-lab
Lab 6 Title: Functions for all Subtasks
        Activity  6.1 - Void Functions
        Activity  6.2 - Functions that "Return" more than a Value (Call-by-Reference)
        Activity  6.3 - Functions Calling Another Function
        Post-lab
Lab 7 Title: Multiple Files, Make, and Debug
        Activity 7.1 - Separate Files
        Activity 7.2 - Make and Makefiles
        Activity 7.3 - Debug your Programs
        Post-labs
Lab 8

Title: I/O Streams
         Activity 8.1 - Reading from/Writing to a File Using Streams for Program I/O
         Activity 8.2 Streams as Arguments to Functions
         Activity 8.3 - Reading to the End of a File
            Member Functions get and put
            Member Function eof
         Activity 8.4 - Predefined Character Functions in
             cctype (ctype)
         Post-lab - A simple html converter

Lab 9

Title: Arrays
         Activity 9.1 - Introduction to Arrays
         Activity 9.2 - Arrays in Functions
         Activity 9.3 - Searching Arrays
         Activity 9.4 - Two Dimensional Arrays (optional)
         Post-lab - Image Processing Tool (optional)

Lab 10

Title: Strings
        Activity 10.1 - Introduction to Strings, C-String Functions
        Activity 10.2 - The Standard String Class
        Activity 10.3 - Converting Between String Objects and C-String (Example: file I/O)

Lab 11 Title: Defining Classes
        Activity 11.1 - Structures
        Activity 11.2 - Classes
        Post-lab - Class and Struct Topic Review
Lab 12 Title: Constructors, Classes and Graphics
        Activity 12.1 - Constructors
        Activity 12.2 -Working with Graphics - The use of a Graphics Library
        Activity 12.3 - (Optional for Extra Credit) Animation - Creating a Ping Pong Game