Sample Programs
See "Using the Tape Drive" for instructions on how to load programs,
and to verify the program loaded correctly.
countdown.w7t - Count Down timer
VERIFY PROG: 533
USE: Enter a number and press GO. This display will count down that number until 0.
This program demonstrates basic use of WRITE ALPHA 1/X (Pause) and program loops.
celsius.w7t - Convert Degrees Fahrenheit to Celsius
VERIFY PROG: 194
USE: Enter degrees Fahrenheit and press GO. The display will show the
equivalent degrees Celsius.
This program demonstrates how to do basic math calculations
using registers.
hello.w7t - Simple Example of the Model 701 OutputWriter
VERIFY PROG: 447
If not already done, use the Devices -> Output Devices menu to
connect one of the OutputWriter models (701, 702, or 711).
Press GO
The OutputWriter window should appear with the
text "Hello World!" printed on it.
This program demonstrates how to print a text string to the OutputWriter.
craps.w7t - Game of Craps
VERIFY PROG: 2470
USE: Optionally enter a random number (use decimal places), then press GO.
The number 500 should appear on the Y display. This is your bank.
Enter a bet and press GO. The first dice roll will appear for 1.4 second.
If it is a win, the display will flash for 0.7 second and then you will see
your new bank and can enter a new bet. If it is a lose, the display will blank
for 0.7 second and then you will see your updated bank and can bet again.
If the number is a "point" then it is placed in Y,
and X will show repeated dice rolls for 0.7 second each,
and the appropriate action taken (win, lose, repeat).
This program demonstrates use of the random number generator and simple game
simulation. It also shows use of "special effects" like making the display
flash without aborting the program, and making the display blank.
zeller.w7t - Compute day-of-week for give date
VERIFY PROG: 1483
If not already done, use the Devices -> Output Devices menu to
connect one of the OutputWriter models (701, 702, or 711).
Enter month (1-12)
Press GO (The OutputWriter window should appear, may need to raise calculator window to continue)
Enter day (1-31)
Press GO
Enter year (4 digit)
Press GO
The OutputWriter window should appear with the entered values and result.
plot_RC.w7t - Draw a graph on the 712 Flatbed Plotter
VERIFY PROG: 5131
If not already done, use the Devices -> Output Devices menu to
connect the 712 Flatbed Plotter.
Press GO
The graph of a capacitor circuit charge/discharge,
with axii and labeling, will appear on the plotter window.
plot_dat.w7t - Plots data samples from a "paper tape" file
VERIFY PROG: 5185
If not already done, use the Devices -> Output Devices menu to
connect the 712 Flatbed Plotter.
If not already done, use the Devices -> 703 Paper Tape Reader menu to
install (or rewind) the paper tape image "temperature.txt".
Press GO
The graph of the temperature data, with axii and labeling, will appear on the
plotter window.
Data file image is "plain text". The Wang "Paper Tape Editor", as it was called,
took standard 8-level ASCII code on paper tape. Image files are thus plain (ASCII) text,
formated as lines of numeric data.
list_dat.w7t - Lists datapoints from a paper tape file
VERIFY PROG: 1679
If not already done, use the Devices -> Output Devices menu to
connect one of the OutputWriter models (701, 702, or 711).
If not already done, use the Devices -> 703 Paper Tape Reader menu to
install (or rewind) the paper tape image "temperature.txt".
Press GO
A tabular list of the datapoints in the tape image will be printed.
plot_alpha.w7t - Demonstrates the character set of the 712 Plotter
VERIFY PROG: 1288
If not already done, use the Devices -> Output Devices menu to
connect the 712 Flatbed Plotter.
Press GO
The complete character set, in three different sizes, will be drawn on the
plotter.
example707.w7t - Demonstrates one way to use the Model 707 Teletype
VERIFY PROG: 1063
If not already done, use the Devices -> Output Devices menu to
connect the 707 Teletype.
Using "telnet", or some other suitable client, connect to the Wang 700 simulation.
Press GO. An introduction and prompt for data should appear on the "telnet" session.
From the "telnet" session, type a number and press "Enter" (Return).
The equivalent temperature in Celsius, and a new prompt, should be printed.
The program repeats indefinitely, until PRIME is pressed on the calculator.
If the client disconnects, the program will still be running and a new client can be connected
(although in that case the prompt is not re-printed).
Source Code
The above programs (and data) are available in "source" format in the (TBD) package.