On Jun 16, 6:24 pm, dani... / sleepingindian.org wrote:
[snip code]
> Here is my code for the "array program"  from chapter 7 and the
> challenge is to now adapt the program to have the same output without
> using the "sort" method.
>
> I have no idea where to even start. I think we are supposed to iterate
> over the array somehow but have no clue. Anybody got a hint for me?

Try inserting each input into a sorted array.

> Secondly, I have a question about this code for my Deaf Grandmother
> program:
[snip code]

> The only problem with my program is when a user inputs something of
> mixed case the program doesn't respond with "WHAT? YOU'RE GONNA HAVE
> TO SPEAK UP!" like it should...

Maybe use a regex to check for any lowercase letters. Instead of:
if r == r.downcase or r == r.capitalize
use:
if r =~ /[a-z]/

Jeremy