#include <iostream.h>
#include<conio.h>
main()
{
clrscr();
int selection;
float price,money,addmoney,balance,result,total_mark;
cout<<"\*****HARGA PAKEJ*****";
cout<<"\n1.Pakej 1(kelas B2)";
cout<<"\nJumlah \t\tRm643.00";
cout<<"\nDeposit \t\tRm250.00";
cout<<"\n-*-*-*-*-*-*-*-*-*-*";
cout<<"\n2.Pakej 2(kelas B)";
cout<<"\nJumlah \t\tRm775.00";
cout<<"\nDeposit \t\tRm250.00";
cout<<"\n-*-*-*-*-*-*-*-*-*-*";
cout<<"\n3.Pakej 3(kelas D)";
cout<<"\nJumlah \t\tRm893.00";
cout<<"\nDeposit \t\tRm250.00";
cout<<"\n-*-*-*-*-*-*-*-*-*-*";
cout<<"\n4.Pakej 4(kelas B1)";
cout<<"\nJumlah \t\tRm773.00";
cout<<"\nDeposit \t\tRm250.00";
cout<<"\n-*-*-*-*-*-*-*-*-*-*";
cout<<"\n\nEnter your selection = ";
cin>>selection;
cout<<"please enter your money = ";
cin>>money;
cout<<"\nEnter your result = ";
cin>>result;
cout<<"PASS or FAILED ";
cin>>"\n pass or failed";
switch (selection)
{
case 1:price = 643.00;cout<<"\n\n kelas B2.";break;
case 2:price = 775.00;cout<<"\n\n kelas B.";break;
case 3:price = 893.00;cout<<"\n\n kelas D.";break;
case 4:price = 773.00;cout<<"\n\n kelas B1.";break;
case 5:result = 40;cout<<"\n\n result.";break;
default:cout<<"\n\nINVALID selection";
}
if(money < price)
{
balance = price - money;
cout<<"\nPlease insert more money (RM"<<balance<<")= ";
cin>>addmoney;
}else
{
balance = money - price;
cout<<"\nPlease take your balance (RM"<<balance<<")";
}
{
if(total_mark < result)
cout<<"\nPlease insert your result ("<<result<<")";
}
return 0;
}