# Calculator Programming Tutorial

## Fundamental Content

### Programming as Process Design

#### Flowchart Description

The flowchart presented in the page Programming as Process Design consists of a series of shapes containing text, with arrows connecting various of the shapes. The shapes are arranged in a vertical stack. Arrows going from one containing shape to the shape immediately are straight lines down the diagram center line with arrowheads. Arrows connecting any other two shapes first go to the side, then go up or down beside the shapes, then return to the center line, and finally connect to the shape.

The first shape is a left semicircle, joined to a rectangle, joined to a right semicircle, the whole having the appearance of a rectangle with severely rounded corners. The text in this shape is the word “Start.”

The second shape is a rectangle. The text in this shape is two lines. The first line is the letter a, followed by a left pointing arrow, followed by the digit 1. The arrow points from the 1 to the a to indicate assignment. The second line is the letter b, followed by a left pointing arrow, followed by the digit 1. The first shape (“Start”) is connected to this second shape by an arrow from the first shape to this shape.

The third shape is a flattened diamond, or a rhombus rotated so two vertices align vertically and two align horizontally, the whole being wider than it is tall. The text inside this shape is “a > n.” The second shape (“a becomes 1, b becomes 1”) is connected to this third shape by an arrow from the second shape to this shape.

The fourth shape is a rectangle. The text in this rectangle is the letter b followed by a left pointing arrow followed by the two letters ab, indicating the product of a and b. This shape is connected to the third shape (“a > n”) by an arrow from the third shape to this shape, the arrow having a text label of “no.”

The fifth shape is a rectangle. The text in this rectangle is the letter a followed by a left pointing arrow followed by the letter a, a plus sign, and the digit 1. This shape is connected to the fourth shape (“b becomes ab”) by an arrow from the fourth shape to this shape.

There is an arrow from this fifth shape that goes up the side of the diagram and connects to the arrow from the second shape (“a becomes 1, b becomes 1”) to the third shape (“a > n”).

The sixth shape is a rectangle. The text in this rectangle is “Return b.” The third shape (“a > n”) is connected to this shape by an arrow coming down the side of the diagram, the arrow having a text label of “yes.”

The seventh shape is a rectangle with severely rounded corners. The text in this shape is the word “End.” This shape is connected to the fifth shape (“Return b”) by an arrow from the fifth shape to this shape.

Click here to return to the Programming as Process Design page.

Copyright © 2001 Brian Hetrick
Page last updated 30 December 2001.

# Brian’s Casio Calculator Corner

Home

Programs

Tutorial

Preface

Introduction

Fundamentals

Introduction

Process Design

Literature

Exercises

Building Blocks I

Modularization

Data Structures I

Recursion

Program Attributes

Building Blocks II

Algorithm Analysis

Structuring

Data Structures II

Abstract Types

Objects

Problem Analysis

Reference Card

References

Puzzles

Site Information