home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
BEEHIVE
/
UTILITYS
/
PUDD.ARC
/
PUDD-06.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-08-11
|
3KB
|
88 lines
procedure ChooseOne(var AnyOne:typicalstring);
var i :integer;
begin
i := random(11);
case i of
0: AnyOne := 'sliced bread';
1: AnyOne := 'apple pie';
2: Anyone := 'sex';
3: Anyone := 'Beer and cheese';
4: Anyone := 'puppies';
5: Anyone := 'chocolate';
6: anyone := 'indoor plumbing';
7: Anyone := 'Mother''s milk';
8: Anyone := 'toilet paper';
9: Anyone := 'Rock & Roll';
10: Anyone := 'no-wax floors';
end; {.....case}
end;
procedure writeletter;
var megaBucks :integer;
response :string[5];
i :integer;
SillySaying:string[15];
begin
ChooseOne(sillySaying);
ClrScr;
gotoXY(10,10);
clreol;
write(' Enter any integer....');
read(response);
val(response,megabucks,i);
while megaBucks < 8 do
begin
gotoXY(10,10);
clreol;
write(^G);
write(' Number not big enough !');
delay(1200);
gotoXY(10,10);
clreol;
write(' Try again.....');
read(response);
val(response,megabucks,i);
end;
gotoXY(10,10);
write('Make certain printer is on-line ');
writeln(lst,' ');
writeln(lst,' ');
writeln(lst,'to: Greg Jackson');
writeln(lst,' 1616 Capital Ave.');
writeln(lst,' Madison, WI 53705');
writeln(lst,'');
writeln(lst,'re: Pudd (PUblic Domain Draw)');
writeln(lst,'');
writeln(lst,'');
writeln(lst,'Dear Greg,');
writeln(lst,'');
writeln(lst,'I just wanted to send along this little note to let you know how much I like');
write(lst,'the Pudd program. It''s the greatest thing since ');
write(lst,SillySaying);
writeln(lst,'. I am also');
write(lst,'enclosing a check for $');
write(lst,megabucks);
writeln(lst,'.00 as a small token of my appriciation. I realize');
writeln(lst,'this isn''t much but it''s all I can afford at this moment. I''ll send ');
writeln(lst,'more as soon as soon as I win the New York state lottery. I promise.');
writeln(lst,'I understand that since my check is for more than $8.00 I will receive');
writeln(lst,'the next version of the program in the mail as soon as it becomes ');
writeln(lst,'available. I have put my mailing address on the upper right hand corner');
writeln(lst,'of this sheet. I also realize that the program is still public domain ');
writeln(lst,'and I might find the next version on an RBBS sometime, but sent it to ');
writeln(lst,'me anyway just to make sure I get it as soon as possible. I will ');
writeln(lst,'also feel free to share it with other Televideo people at no cost to them. ');
writeln(lst,'');
writeln(lst,'As a final note I have a few suggestions and comments concerning improvements');
writeln(lst,'and/or future features of Pudd. Such as ..........');
gotoXY(10,10);
write('Now fill that sucker out and mail it !');
for i := 1 to 41 do
writeln(lst);
gotoXY(10,12);
write(' press any key.....');
repeat
until keypressed;
end;