My mom found some old source code that she wrote for a course around the year 1983. I've tried to identify the language that is used, but have come up empty-handed. It seemed to be BASIC at first, but I haven't been able to find a version of BASIC matching this syntax. I also don't know what computer the code was written on.
I've transcribed the source code (which was originally on an ancient print-out) exactly as it was written below:
0010 // PROGRAM LAVET AF LOTTE OG METTE
0020 DIM NAVN$ OF 20
0030 INPUT "INDTAST NAVN ":NAVN$
0040 PRINT "NAVN ";NAVN$
0050 INPUT "INDTAST ALDER ":ALDER
0060 IF ALDER<16 THEN
0070 PRINT "DUER IKKE ";ALDER
0080 ELSE
0090 IF ALDER>16 THEN
0100 PRINT "GOD NOK ";ALDER
0110 INPUT "INDTAST HØJDE ":HØJDE
0120 IF HØJDE<1.80 THEN
0130 PRINT "SKIP HAM ";HØJDE
0140 ELSE
0150 IF HØJDE>1.80 THEN
0160 PRINT "UDEMÆRKET ";HØJDE
0170 INPUT "INDTAST HÅRFARVE RØD=1,BRUN=2,LYS=3,SORT=4 ":HÅRFARVE
0180 IF HÅRFARVE<2 THEN
0190 PRINT "YTTTT ";HÅRFARVE
0200 ELSE
0210 IF HÅRFARVE>1 THEN
0220 PRINT "FLOT FYR ";HÅRFARVE
0230 INPUT "INDTAST KROPSBYGNING V-FORMET=1,IKKE V-FORMET=2":KROPSBYGNING
0240 IF KROPSBYGNING>1 THEN
0250 PRINT "HAM KAN DU IKKE VÆRE BEKENDT AT FØLGES MED";KROPSBYGNING
0260 ELSE
0270 IF KROPSBYGNING<2 THEN
0280 PRINT "HAM KAN DU VÆRE STOLT AF";KROPSBYGNING
0290 ENDIF
0300 ENDIF
0310 ENDIF
0320 ENDIF
0330 ENDIF
0340 ENDIF
0350 ENDIF
0360 ENDIF
0370 END
The oddities are:
The comment at line 0010 using a double slash instead of the
REM
keyword.The
OF
keyword used in line 0020 when declaring an array withDIM
.The
ENDIF
keyword instead ofEND IF
.The assignation of variables without any keywords like
LET
, only appending them to theINPUT
command with a colon.The variable names appended with semicolons after
PRINT
's.The allowed use of the foreign characters Æ, Ø and Å.
Possibly others that I haven't identified.
Other information that could possibly help:
She claims that the course was sponsored by IBM (but the code doesn't seem to match any IBM BASIC I could find.)
She claims that the code ran without issue, when it was tested for the course.
It's possible that it's an esoteric BASIC version made specifically for this one course, but I somehow doubt it. Excited to see what you all can make of this.
(And yes, if you know Danish, the program itself is super silly.)