hi Nehal

nehal sharma wrote in post #1031717:
> ........
>     elsif answer == "n"
>       register_new_customer
> ........
>
> def register_new_customer ( customer_id, fname, lname, address1,
> address2, city, state, zip, ph_no)
> ........

  notice that you call register_new_customer with no arguments, but
define it to take 9 arguments.  this will certainly cause errors.  the
register_new_customer method is where all of that information is
collected and stored (where the 'salesman' asks you your data and
records
it...)  you don't know any of that information yet when you call the
register_new_customer method, so leave off the arguments:

  .......
    elsif answer == "n"
      register_new_customer
  .......

  def register_new_customer
    puts "Enter first name please"
    fname = gets.chomp
    ........ etc.
  end


  looks like you're on the right track, keep at it!

  - j

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