#Dinner Club Markdown
Making practical and effective use of SRP, the Dinner Club program consists of 3 different files; checksplitter.rb, dinnerclub.rb, and app.rb. CheckSplitter
and DinnerClub
are two different classes with different functions; carefully laid out to handle a single responsibility amongst themselves and return values to the method. The last file app.rb
handles the interaction between the program and user.
##Great, so what does the program do?
Programs do things - getting there is a long road but the outcome is sometimes simple to explain. This program, Dinner Club, outputs a few things: the amount each member of Dinner Club has paid, where they went, and who went on the outing. The program looks like this when you run it:
Who is in the dinner club? (Comma-separated)
Sam, James, Amy
Okay, great. Go out to eat?