home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
168.WCHILL.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1987-02-05
|
891b
|
38 lines
program windchill;
var
wrk: array [1..16, 1..14] of real;
r, c : integer;
t, v : real;
begin
clrscr;
writeln(' Wind Chill Chart');
for r:= 1 to 16 do
begin
v:= 2 * r + 2;
for c:= 0 to 13 do
begin
t:= -5 * c + 40;
wrk[r, c+1] := ((10.45 + ( 6.686112 * sqrt(v)) - (0.447041 * v)) /
22.034 * (t - 91.4)) + 91.4
end
end;
writeln(' Read Temperature across top of chart, wind velocity down');
writeln(' the left side. The two intersect at the appropriate wind');
writeln(' chill equivalent for existing conditions.');
writeln;
write (' ');
for c:= 0 to 13 do
write ((-5 * c + 40):5);
writeln;
writeln;
for r:= 1 to 16 do
begin
write (2 * r + 2:5);
for c:= 1 to 14 do
write (wrk[r, c]:5:0);
writeln
end
end.