Rick Barrett wrote: > The goal of this assignment is to ask the user for the price of each of > their items and print out a receipt using your own defined methods. I've > been doing well in the class(ahead actually) until the last two weeks > and I want to stay ahead. > > This is what I have so far... > > puts "Enter shopping cart item prices, one per line.\n" > puts "Press 0 when you are finished.\n" ...and why are those lines there instead of in the method get_items_from_user() (which is a misnomer anyway because the method is getting item prices not items, e.g. item = bread, item_price=$2.50)? How about get_prices() and get_input() instead of get_items_from_user() and ask_user_for_number()? -- Posted via http://www.ruby-forum.com/.