Demo Program #1 - to illustrate how C++ treats arithmetic and Boolean expressions. The program also illustrate the use of a couple relational and logical operators.
Demo Program #2 - to illustrate the use of common logical and relational operators.
Demo Program #3 - to illustrate the use of the if statement
Demo Program #4 - to illustrate common errors related to the use of the C++ if statement
Demo Program #5
- roots to a quadratic equations
Ch. 4 Worksheet #1 - if statements, logical & relational expressions
Ch. 4 Worksheet #2 - program that calculates ALL roots of a quadratic equation
CMPSC 201 Home Page