CIS 150 - Demonstration Programs

Input and output

Data types, operators, operator precedence

Math functions and random numbers

Selection

Repetition

File I/O

Functions

Arrays, vector class

Searching and sorting

Pointers and memory allocation

Characters and strings

Structures and classes

Miscellaneous

  • gravity.cpp: calculates the gravitational force of a hollow sphere on a particle within it using a manual integration process