File GEWICH.PS

Directory of image this file is from
This file as a plain text file

PROGRAM GEWICHT (INPUT,OUTPUT);
VAR GROESSE,GEWICHT,IDEAL,NORMAL:REAL;
    GESCHLECHT:CHAR;
BEGIN
READLN(GEWICHT,GROESSE,GESCHLECHT);
NORMAL:=GROESSE-100.0;
IF GESCHLECHT="M"
THEN  IDEAL:=0.9*NORMAL
ELSE IDEAL:=0.85*NORMAL;
IF GEWICHT<IDEAL*0.97
THEN WRITELN("SIE SIND ZU DUENN!")
ELSE IF GEWICHT>NORMAL
     THEN WRITELN ("SIE SIND ZU DICK!")
     ELSE IF GEWICHT>IDEAL*1.03
          THEN WRITELN ("ES IST ALLES IN ORDNUNG!")
          ELSE WRITELN ("SIE HABEN IHR IDEALGEWICHT!")
END.



Feel free to contact me, David Gesswein djg@pdp8online.com with any questions, comments on the web site, or if you have related equipment, documentation, software etc. you are willing to part with.  I am interested in anything PDP-8 related, computers, peripherals used with them, DEC or third party, or documentation. 

PDP-8 Home Page   PDP-8 Site Map   PDP-8 Site Search