Starting Out with C++ Seventh Edition  ISBN 13: 978-0-13-257625-3, Programming Challenges Ch. 7; Pg. 443; No. 3 -- Chips and Salsa