From: Dana Merrick Date: 2008-07-28T23:29:42+09:00 Subject: Re: deaf grandma. --------------enigCC75174595A82C6852BFA5E6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I don't want to give away TOO much, but here is the shell of what you sho= uld=20 have. The last part of the problem (having to shout BYE three times) is l= eft as=20 an exercise to the reader. # Initialize some variables. text =3D "" leave_message =3D "BYE" # Welcome message. puts "Well, hello, sonny!" # Start loop. while text !=3D leave_message text =3D gets.chomp if text =3D=3D text.upcase random =3D rand(21) + 1930 puts "No, not since #{random}!" else puts "Huh?! Speak up, sonny!" end end HTH, Dana --=20 Dana Merrick - System Administrator Integrated Computer Solutions, Inc. 54B Middlesex Tpke, Bedford, MA 01730 617.621.0060 x112 - http://www.ics.com --------------enigCC75174595A82C6852BFA5E6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFIjdfu7b+8UB5G/wMRAgELAJ94hIiCYOPSZC2ko7awNDSJhdjWNgCghjsm RRbqQ1LvXi2eS1Cxkfb8QOk= =20n1 -----END PGP SIGNATURE----- --------------enigCC75174595A82C6852BFA5E6--