Write your question here.
Hey I cant figure out where and what type of loop I should put in to get my if statements to activate every time the user inputs y or n please help!
[code]
Put the code you need help with here.
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
cout << "Your Total before Tax is: " << subtotal << " " <<endl;
cout << "The Tax is: " << salesTax << " " << endl;
cout << "Your total is: " << " " << Total << endl;
1) print the Menu
2) get input from the user
3) check if conditions
4) ask the user if he wants to quit or order again
5) get that input
here is some pseudo code,showing what steps need to be taken.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
bool quit = false;
while(!quit){
// 1) print the Menu
//2) get input from the user
//3) check if conditions
//4) ask the user if he wants to quit or order again
//5) get input
if(yes){
quit = true;// quit now equals true
}
}