# Calculator Programming Tutorial

## Programming Building Blocks I

### Examples

#### Ballistic Pumpkins

##### Problem Analysis Equations

In the Problem Analysis page of this example, several equations are given as graphics, as conventional mathematical layout is not supported by HTML. These equations are described in this section.

##### Air Pressure Equations

The air pressure equations divide the height domain into three regions, and give a different equation for each region. The equation for the region 83245 < h is:

p(h) = 51.97 ((T + 459.7)/389.98)-11.388

The equation for the region 36152 < h < 82345 is:

p(h) = 473.1e1.73 - .000048h

The equation for the region h < 36152 is:

p(h) = 2116 ((T + 459.7)/518.6)5.256

##### Air Temperature Equations

The air temperature equations divide the height into the same three regions as the air pressure equations, and give a different equation for each region. The equation for the region 83245 < h is:

T(h) = -205.05 + 0.00164h

The equation for the region 36152 < h < 82345 is:

T(h) = -70

The equation for the region h < 36152 is:

T(h) = 59 - 0.00356h

##### Speed of Sound Equations

The equation for the speed of sound is:

a(T) = sqrt (γRT)

where “sqrt” indicates the square root of its argument.

Page last updated 27 January 2002.

# Brian’s Casio Calculator Corner

Home

Programs

Tutorial

Preface

Introduction

Fundamentals

Building Blocks I

Introduction

Data Types

Numbers

Variables

Expressions

Control Flow I

Control Flow II

Subprograms

Basic I/O

Algorithms

A First Program

Examples

Introduction

Logical Ops

Bitwise Ops

Pumpkins

Problem

Temperature

Sound

Pressure

Density

Drag

Simulation

Exercises

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