case 1:
cout<< "You have chose Holcim Wallright Cement!";
cout<< endl;
cout<< endl;
orderulit:
cout<< "How many Bags would you like to order?";
cout<< endl;
cout<< endl;
cout<< "Number of Bags: ";
cin>> numorder;
if(! (cin>> choice))
{
cout<< "Sorry your choice is not invalid. Please Input a valid answer."<< endl;
Sleep(2000);
system("cls");
cin.clear();
cin.get( numeric_limits<streamsize>::max());
goto orderulit;
}
total = numorder * wallright;
cout<< "Calculating Total Price...Please Wait...";
Sleep(2000);
cout<< "Total Price: Php "<< total;
cout<< endl;
cout<< endl;
cout<< "Thank you for using Holcim's Ordering System!";
cout<< endl;
cout<< endl;
break;
case 2:
cout<< "You have chose Holcim Premium Cement!";
cout<< endl;
cout<< endl;
orderulitt:
cout<< "How many Bags would you like to order?";
cout<< endl;
cout<< endl;
cout<< "Number of Bags: ";
cin>> numorder;
if(! (cin>> choice))
{
cout<< "Sorry your choice is not invalid. Please Input a valid answer."<< endl;
Sleep(2000);
system("cls");
cin.clear();
cin.ignore( numeric_limits<streamsize>::max(),'\n');
cin.clear();
goto orderulitt;
}
total = numorder * wallright;
cout<< "Calculating Total Price...Please Wait...";
Sleep(2000);
cout<< "Total Price: Php "<< total;
cout<< endl;
cout<< endl;
break;
case 3:
cout<< "You have chose Holcim Excel Cement!";
cout<< endl;
cout<< endl;
orderulittt:
{
cout<< "How many Bags would you like to order?";
cout<< endl;
cout<< endl;
cout<< "Number of Bags: ";
cin>> numorder;
if(! (cin>> choice))
{
cout<< "Sorry your choice is not invalid. Please Input a valid answer."<< endl;
Sleep(2000);
system("cls");
cin.clear();
cin.ignore( numeric_limits<streamsize>::max(),'\n');
cin.clear();
goto orderulittt;
}
total = numorder * wallright;
cout<< "Calculating Total Price...Please Wait...";
Sleep(2000);
cout<< "Total Price: Php "<< total;
cout<< endl;
cout<< endl;
cout<< "Thank you for using Holcim's Ordering System!";
cout<< endl;
cout<< endl;
break;
case 4:
cout<< "You have chose Holcim 4x Cement!";
cout<< endl;
cout<< endl;
orderulitttt:
cout<< "How many Bags would you like to order?";
cout<< endl;
cout<< endl;
cout<< "Number of Bags: ";
cin>> numorder;
if(! (cin>> choice))
{
cout<< "Sorry your choice is not invalid. Please Input a valid answer."<< endl;
Sleep(2000);
system("cls");
cin.clear();
cin.ignore( numeric_limits<streamsize>::max(),'\n');
cin.clear();
goto orderulitttt;
}
total = numorder * wallright;
cout<< "Calculating Total Price...Please Wait...";
Sleep(2000);
cout<< "Total Price: Php "<< total;
cout<< endl;
cout<< endl;
cout<< "Thank you for using Holcim's Ordering System!";
cout<< endl;
cout<< endl;
break;
default:
if(! (cin>> choice)){
cout<< "Sorry your choice is not available. Please Input a valid answer."<< endl;
cin.clear();
cin.ignore( numeric_limits<streamsize>::max(),'\n');
cin.clear();
goto numericinput;
}
else{
cout<< "Sorry your choice is not available. Please Input a valid answer."<< endl;
cout<< endl;
cout<< "Please what you have entered to confirm: ";
cout<< endl;
goto numericinput;
}
}
}
}
else
{
cout << "\n\nIncorrect input 3 times";
}