Computer Science 1: Programming — Examples

This page contains samples of supplemenatary information for studying programming. You can obtain permission for personal use of these materials by sending a request with your name, email address, and the name of your academic institution (if any) to Gary Nutt (nutt@gnutt.com). Once you have explicit permission, you can make one copy of the materials for yourself, and you can read the materials on the web site as much as you want. If you use the material without permission, you are violating the copyright on it.

Copyright © 2008 by Gary Nutt













CONTENTS

  • Converting Decimal Numbers to Binary Numbers
  • Loop Examples
  • Rock, Paper, Scissors
  • A Postfix Calculator
  • Complex Numbers
  • Linear Interpolation
  • A Menu
  • Operator Overloading
  • Inheritance
  • Binary Trees
  • A Compass Using Classes and Borland Graphics