Write a Java program that computes the number of candy bars and gumballs you can get by
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Java program that computes the number of candy bars and gumballs you can get by redeeming coupons at an arcade. Assume you have 108 coupons in total. 10 coupons are redeemable for candy bars and 3 coupons for gumballs. You would like as many candy bars as possible and only use the remaining coupons on gumballs.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: