(Solved):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 g… View Answer…

 

Question

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 takes the number of coupons you win as input (you can test with 9, 28, and 37 coupons) and outputs how many candy bars and gumballs you

Scroll to top