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
C program to print R diagonal triangle: #define rows 3 #define cols 3 void main() {                 int i=0,j=0;                 int arr[rows][cols];

C Program to FIND VOWELS AND REMOVE VOWELS void main() {           char s[100],s1[100];           int i,j,k=0;           clrscr();           printf("ENTER ANY S

THEORY OF A COMPUTER PROGRAMMING

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules. a. A call made between 8:00 AM and 6:

Need help finishing my homework. It''s been 5 years since I''ve use C++. I am a VN.Net programmer. -Todd

Temperature Conversions. Problems 28 through30generate temperature-conversion tables. Use the following equations that give relationships between temperatures in degrees Fahrenheit

flow chart for calculating the volume of sphere

Define the Self-Referential Structures? It is occasionally desirable to include within a structure one member that is a pointer to the parent structure type. Generally in terms

WAP TO ACCEPT MARKS OF THREE SUBJECT FOR STUDENT & CALCULATE TOTAL MARKS AND PERCENTAGE #include stdio.h> #include conio.h>   void main() {            int M1,M

program that generate university statistical bar graph using 3d function