if (membership != 'S' && membership != 'P' && membership != 'E')
cout << "Please enter S(tandard) or P(lus) or E for Premium. " << endl;
else
{
if (membership == 'S' && purchase <= 75)
reward = purchase * REW_PT1;
else if (membership == 'S' && purchase < 149.99)
reward = purchase * REW_PT2;
else if (membership == 'S' && purchase >= 150)
reward = purchase * REW_PT3;
else if (membership == 'P' && purchase < 150)
reward = purchase * REW_PT4;
else if (membership == 'P' && purchase >= 150)
reward = purchase * REW_PT5;
else if (membership == 'E' && purchase < 200)
reward = purchase * REW_PT6;
else if (membership == 'E' && purchase >= 200)
reward = purchase * REW_PT7;
}
Thx for the help.
Last edited on