@Cjigsaw,
This helps more.....but first, use code tags, they work like this:
[code]
// all your code here
[/code] |
That said, here's the first problem:
if ((rewardLevel = 'g' || 'G') && (receiptAmt > 200))
Specifically, this does not check rewardLevel for a lower OR upper case 'G'.
That has to be written like this:
if ((rewardLevel == 'g' || rewardLevel == 'G') && (receiptAmt > 200))
In your version, you use "=" not "==".
"=" is assigment, you actually assigned rewardLevel to 'g', not tested it.
the "==" is evaluation, a comparison for equality. THAT will test for 'g'....
But then, you MUST test again, not just a dangling 'G' by itself.
Think with that, change your code and come back if that helps.
See....I KNEW FULL WELL we HAD TO HAVE the ACTUAL CODE to SEE THE FACTS.
Facts you simply couldn't recognize without help.
@zapshe,
You were working on a reasonable line of thinking, but.....just not what the OP was actually writing.