Absolute C++

Authors: Walter Savitch ,kenrick Mock
ISBN: 9780132846813
Edition: 5
Chapter: C++ Basics
Exercise: Programming Projects
Question: 9


Question by Anonymous on 19 Apr, 2019 at 03:31 AM

The video game machines at your local arcade output coupons depending on how well you play the game. You can redeem 10 coupons for a candy bar or 3 coupons for a gumball. You prefer candy bars to gumballs. Write a program that inputs the number of coupons you win and outputs how many candy bars and gumballs you can get if you spend all of your coupons on candy bars first and any remaining coupons on gumballs.

Extend your hand to students and help them to get better grades.