Question: In c++ prog. Problem 3 You can get one toy for 10 coupons. For example, if you have 57 coupons, then you can get 5

In c++ prog.  In c++ prog. Problem 3 You can get one toy for

Problem 3 You can get one toy for 10 coupons. For example, if you have 57 coupons, then you can get 5 toys, and 7 coupons remaining. You can also get 1 chocolate for 3 coupons. For example, if you have 7 coupons thern you can get 2 chocolates and 1 coupon remaining. Input the number of coupons and calculate how many toys, and chocolates you can get with the remaining coupons, or only the chocolates with the remaining coupons. Sample input/output How many coupons: 57 You can get 5 toys, 2 chocolates, with 1 remaining coupons You can get 19 chocolates, with 0 remaining coupons many coupons: 23 can get 2 toys, 1 chocolates, with e remaining coupons can get 7 chocolates, with 2 remaining coupons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!