PROGRAMMING EXAMPLES & NOTES


Examples and notes are indexed below in four ways. Select one:


Examples and Notes Listed Alphabetically by Topic


Examples and Notes Listed by Textbook Chapter

The links below retrieve notes written by your instructor to serve as supplemental reading related to the chapters in the textbook.

Chapter(s)Topic
1 An Overview About Problem Solving,
Primary Problem Solving Example,
Data Types & Language
2 Data Types in the C++ Programming Language,
Literals, Named Constants and Symbolic Constants in C++
Variables in C++,
Expressions & Operators in C++,
Output Formatting in C++
Rounding Numbers in C++,
Displaying Special Characters in C++,
Primary Coding Example,
C++ Compiler Notes
3 Acquiring Input in C++,
Keyboard Input of Characters in C++,
Order of Precedence of Operators in C++
Output Formatting in C++
4 Logical Control Structures (PDF File),
Flowcharting Symbols & Guidelines,
Clearing a Screen (Console Window) in C++
Example of a Selection Structure,
Using the if Statement,
Ordinal Data,
Testing for a Yes or No Answer,
Selection Using the Case Selection Structure,
Coding the Case Selection Structure
5 Repetition Control Structure (a.k.a. Looping),
Repetition (Loops) - Structured Design (PDF File),
Example of a Counting Loop (Repetition Structure),
Braces and Branching in C++ Code
for Loops in C++, and Analysis of an accumulation using the repetition structure
6 Functions & Parameters Explained
Top-down Design - Use of Multiple Functions
An Example of Documenting a Program Using Parameter Passing,
Parameter Passing Between Functions in C++
Parameter Passing by Reference (includes pointers)
7 Array Declaration and Manipulation,
Array Analysis and Programming, and
Multi-dimensional Arrays
8 Array Flipping and Other Manipulations (PDF File)
9 Pointers and Indirection in C++, and
Parameter Passing by Reference Using Pointers
Passing Arrays (by Reference)
Parameter Passing Examples - Table-based (PDF File)
Parameter Passing Examples of C++ Code
10 C-Strings (Character Arrays)


Problem Solving (Analysis) Examples and Notes


Program Coding (C++ Source Code) Examples and Notes

PATH: Instructional Server> COP 2000>