Chart Your Biorhythms

Date: 1981
Type: Program
Platform(s): ZX81, TS 1000

A scrolling biorhythm chart for 8K ROM machines. Enter your birth month, day and year, then the month, day and year to start the plot (no prompts, to save memory). The program plots the physical (P, 23-day), emotional (E, 28-day) and intellectual (I, 33-day) sine curves one day per line about a center line of critical days, and keeps scrolling. Hold P to slow it down.

Written for the ZX80 with the original 8K ROM. As printed, line 290 uses the variable B before it is set, so on a ZX81 it stops at once with 2/290; the June 1981 SYNTAX column on 8K ROM program changes corrects lines 109, 230 and 290 for the 8K ROMs then on sale. The download has both versions; use the corrected one.

Published in Syntax January 1981 (Chart Your Biorhythms).

Related Articles

Program for 8K ROM machines graphically displays your emotional, intellectual and physical cycles.

Related Content

Image Gallery

Source Code

 103 DIM N(3)
 106 LET P2=2*PI
 107 LET W=10
 108 LET K=5
 109 LET L=7
 140 FOR T=1 TO 2
 145 INPUT M
 160 INPUT D
 165 INPUT Y
 170 LET N(T)=INT (365.25*(Y-(M<3)))+INT (30.6001*(M+1+12*(M<3)))+D
 192 NEXT T
 230 LET N=N(2)-N(1)
 290 PRINT AT L,0;B=N(1)-N(2)+1;AT L,(SIN (P2*B/23)*W+W+K);"P";AT L,(SIN (P2*B/28)*W+W+K);"E";AT L,(SIN (P2*B/33)*W+W+K);"I";AT L,(W+K);":"
 295 SCROLL
 297 PAUSE 20
 298 IF INKEY$="P" THEN PAUSE 100
 300 LET B=B+1
 310 GO TO 290

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.