First of all, my apologies, it seems that I shouldn't have asked a question. I didn't ask for the answer just someone to review what I had and maybe steer me in the correct direction. In which...
Type: Posts; User: HARLEY78
First of all, my apologies, it seems that I shouldn't have asked a question. I didn't ask for the answer just someone to review what I had and maybe steer me in the correct direction. In which...
as I always say,,, " You don't learn a thing if someone gives you the answer, However, a nudge in the right direction can only lead to learning the answer"
Thanks so much,,, I figured it out with your help.....
I just moved
cout<< "Enter item ordered [A/B/C/D] or T to calculate total: ";
cin >> comboType;
orderTotal +=...
I know you moved the case up a bit, just trying to understand location from your
"try defining the switch before you start reading into it, makes things a bit more clear at least the very least" ...
Thanks so much Spazmotic,
I agree with you, but I screwed up... it's 3 D's and not 3 C's.....but if you add the 2 B's total would be 11.50 and then A would be 4.25 and then 3 D's would be 11.25for...
I am trying to code(c++) a count and sum off of a menu eg. if I ordered 2-B's, 1-A and 3-C's the amount would be 27. My code below only shows 21.25 which seems that it isn't adding the first input....
Thanks CF,
I am glad you didn't do my homework, one can't learn if someone does it for you!
I'll take your input and play with that as well...
Many thanks for the suggestions all!
I woke up this morning thinking Else if as well, lengthy but would work....
Thanks for the tip Nick!
Newbie here!!!!
I just started taking C++ in college and I know this is C++ basic, but trying to wrap my head around it.
We are to create a program (basically scheduling appointment by phone)...