switch(code)
{
case 'A' : if (point>=266500)
{
bal = point - 266500;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : ST0010
" << endl;
cout << "Type of gift : Nokia
5230 Nuron" << endl;
cout << "Balance of treats points: " << bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
case 'B' : if (point>=155500)
{
bal = point - 155500;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : ST0009
" << endl;
cout << "Type of gift : Nokia
6210-3G Phone (Navigator)" << endl;
cout << "Balance of treats points: " <<
bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
case 'C' : if (point>=72500)
{
bal = point-72500;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : ST0008
" << endl;
cout << "Type of gift : Nokia
5800 Phone (Xpress Music)" << endl;
cout << "Balance of treats points: " <<
bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
case 'D': if (point>=172000)
{
bal = point-172000;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : HST001
1" << endl;
cout << "Type of gift : Nokia
5230 Nuron" << endl;
cout << "Extra charges : RM680"
<< endl;
cout << "Balance of treats points: " <<
bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
case 'E': if (point>=98000)
{
bal = point-98000;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : HST001
2" << endl;
cout << "Type of gift : Nokia
6210-3G Phone (Navigator)" << endl;
cout << "Extra charges : RM480"
<< endl;
cout << "Balance of treats points: " <<
bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
case 'F': if (point>=44000)
{
bal = point-44000;
cout << "\nCustomer card number : " << c
ard << endl;
cout << "Customer name : " << n
ame << endl;
cout << "Treats points : " << p
oint << endl;
cout << "Gift code : HST001
3" << endl;
cout << "Type of gift : Nokia
5800 Phone (Xpress Music)" << endl;
cout << "Extra charges : RM280"
<< endl;
cout << "Balance of treats points: " <<
bal << endl;
}
else
{
cout << "Error" << endl;
}
break;
default : cout << "Error" << endl;
}