do {
cout<<"\n\t\t Please choose your mobile from the list: ";
cin>>bokia;
payable=payable+total1;
switch (bokia) {
case 1:
cout<<"\n\tYou ordered for:"<<kinds[0]<<endl;
cout<<"\tPrice: P"<<b3210<<endl;
cout<<"\tHow many: ";
cin>>order1;
total1=b3210*order1;
cout<<"\tTotal: P"<<total1<<endl;
break;
case 2:
cout<<"\n\tYou ordered for:"<<kinds[1]<<endl;
cout<<"\tPrice: P"<<bc3<<endl;
cout<<"\tHow many: ";
cin>>order2;
total2=bc3*order2;
cout<<"\tTotal: P"<<total2<<endl;
break;
case 3:
cout<<"\n\tYou ordered for:"<<kinds[2]<<endl;
cout<<"\tPrice: P"<<bashe<<endl;
cout<<"\tHow many: ";
cin>>order3;
total3=bashe*order3;
cout<<"\tTotal: P"<<total3<<endl;
break;
case 4:
cout<<"\n\tYou ordered for:"<<kinds[3]<<endl;
cout<<"\tPrice: P"<<bdroid<<endl;
cout<<"\tHow many: ";
cin>>order4;
total4=bdroid*order4;
cout<<"\tTotal: P"<<total4<<endl;
break;
case 5:
cout<<"\n\tYou ordered for:"<<kinds[4]<<endl;
cout<<"\tPrice: P"<<blumia<<endl;
cout<<"\tHow many: ";
cin>>order5;
total5=blumia*order5;
cout<<"\tTotal: P"<<total5<<endl;
break;
default:
cout<<"\a\n\n\t\t\tSorry it is not available here."<<endl<<endl;
char f;
cout<<"\tWould you like to reset the program to choose another mobile?(Y or N): ";
cin>>f;
system("cls");
if((f=='Y')||(f=='y')) {
} else {
return(0);
}
break;
}
cout << "\n\t\t\tDo you want to order another mobile? (y/n)? ";
cin >> pitz;
}
while ((pitz == 'y')||(pitz == 'Y'));
payable=payable+total1+total2+total3+total4+total5;
cout<<"\n\tAmount to be paid: P"<<payable;
do {
cout<<"\n\tYour cash is: P";
cin>>cash;
if (cash<payable){
cout<<"\a\n\t\t\t Your money is not enough. "<<endl;
}
}
while (cash<payable);
change=cash-payable;
cout<<"\n\tYour change is: P"<<change<<"\n\n"<<endl<<endl;
cout<<"\t\t For your receipt: ";
system("pause");
system("cls");
cout<<"\t\t\t O F F I C I A L R E C E I P T"<<endl;
cout<<"\n\t\t\t -BokiaMobiles-\n";