as far as i can tell nothing is missing
here is the code (its only three methods):

def promptToQuit
   print "\nYou did not enter any numbers \n are you sure you wish to 
quit? (y/n): "
   answer = getc
   answer = answer.downcase
   while (answer != 'y' && answer != 'n')
      print "Are you sure you wish to quit? (y/n): "
      answer = getc
      answer = answer.downcase
   end

   return answer
end

def getNumbers (num)
   $high = num
   $low  =  num

   while (num != 0)
      print "Please enter a number (0 to quit): "
      num = geti

      if ( (num > $high) && (num != 0) ) then
         $high = num
      else if ( (num < $low) && (num != 0) ) then
         $low = num
      end
   end
end

answer = 'n'

print "\nPlease enter a number (0 to quit): "
num = geti

if (num == 0) then
   answer = promptToQuit
end

if (answer == 'y') then
   print "\nGoodbye"
else
   num = 1
   getNumbers(num)
end

puts "Highest Number: " + $high.to_s
puts "Lowest Number: " + $low.to_s
puts "\n"

-- 
Posted via http://www.ruby-forum.com/.