This section gives some worked examples of programs to do various things. Each example analyzes the problem determine the best programming approach, implements the program in code, and constructs a test for the code. An ALGOL-like pseudocode is used as a program design language.
The first two examples in this section are small, easily explained, self contained, and Casio calculator specific. These examples stop with the production of a program to test the solution to the problem. The third example is somewhat larger, requires some research (which is done), and requires a more stepwise approach to the solution. In this manner, it more closely models real problem likely to be encountered. The third example is also implemented for both the Casio calculator and Visual Basic for Applications.
[ Previous page | Top of page | Next page ]
Copyright © 2002 Brian Hetrick
Page last updated 10 February 2002.
Tutorial
Building Blocks I
Control Flow II
Basic I/O
Algorithms
A First Program
Examples
Introduction
Answers
Modularization
Data Structures I
Recursion
Program Attributes
Building Blocks II
Algorithm Analysis
Structuring
Data Structures II
Abstract Types
Objects
Problem Analysis
Reference Card
![]()