c++ shopping project homework