Write a program for coupon redemption, C/C++ Programming

The video game machines at your local arcade output coupons depending on how well you played the game, you can redeem 10 coupons for a candy bar, 6 coupons for .a medium soft drink, or 3 coupons for a pack of gum.

Write a program that inputs the number of coupons you want to redeem, and outputs the number of candy bars, soft drinks, or packs of gum for which the coupons can be redeemed. After you input the number of coupons, clear the screen before displaying the Coupon Redemption Schedule. Account for Input failure. It is possible the user may accidentally enter something other than a number into a numeric field. Expect and correct a possible input failure using clear and ignore statements. Define the redemption rate using constants, something like this:

const int CANDY_BAR_COUPONS = 10;

const int SOFT_DRINK_COUONS = 6;

const int GUM_COUPONS = 3;

 

774_Write a Program for Coupon Redemption.png

Posted Date: 3/2/2013 6:56:17 AM | Location : United States







Related Discussions:- Write a program for coupon redemption, Assignment Help, Ask Question on Write a program for coupon redemption, Get Answer, Expert's Help, Write a program for coupon redemption Discussions

Write discussion on Write a program for coupon redemption
Your posts are moderated
Related Questions
Selection Sort using this a nested for loop to iterate through and compare the array elements. If the value of an element with lower index is greater than the value of an element w

.Create a Csharp solution that will show a maze in the user interface and will show a mouse walking through the maze attempting to locate the exit door (the cheese).

enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7 5 3 1 3 5 3 1

A: Provide a friend operator class Base { public: friend std::ostream& operator ... protected: virtual void printOn(std::ostream& o) const; }; inline std::ostr

The files are meteorological radar data whose decompression is badly needed for relative study. Please contact Kathy Lee (Email: ; Cell phone: 0086 15701799056) or Mr. Zhu (Email:

write a program to find the area under the curve y=f(x) between x=a & x=b

I am an online tutor who can teach computer science and programming language. Is there any requirement for this?

how to decode a number from mobile keypad

#question.A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a s

Question: (a) (i) Explain how class members can be accessed when using objects of the class. Use a suitable example to illustrate your answer. (ii) Explain how the privat