Programming Practice with Sequential Programs
Today's lecture consists of demonstrations of simple sequential programs to permit students to become more familiar with C++ and the linux programming environment.
Program examples:
- compute_tax.cpp: Demostrate how to compute tax on an amount and format the output (alternate version with additional "white space").
- swap.cpp: Demonstrate how to exchange two variables.
- constants.cpp: Demonstrate different types of variables and and variable constants.
- size.cpp: Demostrate the sizeof() operator for determining how much memory variables of different types use.