#include #include using namespace std; int main() { int number; float cost; char beverage; bool validBeverage; cou
Take this condition as an example, the same problem is in others as well.
while (beverage!='e'||beverage!='E');
A character is either not equal to 'e', or it is equal to 'e', in which case it's not equal to 'E', so the condition is always true.
'e'
'E'
What you want is logical and.