: : this is the program that i need to write, i am copying it word for
: : word:
: :
: : if someone could please help, i cant afford to fail this class
: :
: :
: The program is too trivial to offer much help on. You need only one
: function, which is main.
:
: Output a question using printf() or cout to prompt the user the
: enter the number of meals.
: Input the answer using scanf("%d", &N) or cin >> N;
: Check it is in the range 0-3, and if not output an error mesage and
: terminate.
: Do a switch and print out the room rate and board rate for your four
: possibilities, again using printf() or cout.
:
: The logic is simple
:
: switch(N)
: {
: case 0:
: /* print out message for 0 meals here */
: break;
: case 1:
: /* print out message for 1 meal here */
: break
: etc
: }
:
: How long did you learn it to write such things?
: __________________________________
:
Junk Vista