Mini Project CSC425
Mini Project CSC425
Mini Project CSC425
EWC 661
TOPIC : THE RELATIONSHIP BETWEEN EATING
HABITS AND FAMILY UPBRINGING AMONG
UITM CAWANGAN PULAU PINANG KAMPUS
PERMATANG PAUH STUDENTS
#include <iomanip>
void menu();
void Display();
void packagesel();
void Venue();
void food();
void bridal();
void photo();
void choicess();
void addon();
void details();
void receipt();
float price[3]={30000,20000,10000};
string ven[2]={"Hall","Garden"};
float priceV[2]={2500,5000},pricecv=0;
float priceF[2]={4000,10000};
string bridalb[3]={"No Bridal Dais","Bridal Dais (Artificial Flowers)", "Bridal Dais (Fresh Flowers)"};
float priceB[3]={0,3000,10000};
string pbooth[2]={"No","Yes"};
float priceG[2]={0,1000},bbooth,totaladd=0;
string package1,choosenv,ppt,name,em,date,fD,Bd;
double pF=0,pricePackage=0,deposit=0;
int num;
int main()
menu();
void menu()
system("cls");
int choice;
char package,nom;
cout<<"\tWe offer different wedding packages that provide happy couples with a variety of
attractive special offers."<<endl;
cin>>choice;
if(choice==1)
Display();
else if(choice==2)
packagesel();
void Display()
{
int choice;
system("CLS");
cout<<"\n\t=================================\n\tPACKAGE\n\t==================
===============\n";
cout<<setw(20)<<"\t\t***FOOD***"<<endl;
cout<<setw(20)<<"\n\t\t***BRIDAL SERVICES***"<<endl;
cout<<setw(20)<<"\n\t\t***COMPLIMENTARY***"<<endl;
cout<<setw(20)<<"\t\t***MAIN DISH***"<<endl;
cout<<setw(20)<<"\n\t\t***BRIDAL SERVICES***"<<endl;
cout<<setw(20)<<"\t\t***MAIN DISH***"<<endl;
cout<<"\t\t-Hand bouquet"<<endl;
cout<<setw(20)<<"\n\t\t***PHOTOGRAPHY***"<<endl;
cout<<"\t\t-Unlimited outdoor shooting"<<endl;
cout<<setw(20)<<"\n\t\t***COMPLIMENTARY***"<<endl;
cout<<"\t\t-Photobooth"<<endl;
cout<<"-------------------------------------------------------\n";
system("pause");
menu();
void packagesel()
system("cls");
int code;
cout<<"Step 1 : Select your wedding package. Choose the Package Code below!\n";
cout<<"-------------------------------------------------------\n";
cout<<"-------------------------------------------------------\n";
cout<<"Note: For any chosen wedding package we might need 50% of the total price
as deposit. Thank you :)";
cin>>code;
if(code ==1)
package1= package[0];
pricePackage= price[0];
package1= package[1];
pricePackage= price[1];
package1= package[2];
pricePackage= price[2];
choicess();
void choicess()
int choice;
cout<<"\n\n\n===============================================================
===\n\n< 1 > Go back to main menu and edit your package selection\n< 2 > Start choosing your
venue\n\n>> ";
cin>>choice;
if(choice==1)
menu();
else if(choice==2)
Venue();
void Venue()
char cc;
system("cls");
cout<<"\n\t=================================\n\tVENUE\n\t====================
=============\n";
cout<<"\n\t*Select your venue.\n";
cout<<"-----------------------------------------------------------------------------------\n";
cout<<"-----------------------------------------------------------------------------------\n";
float p;
int v;
cin>>v;
cin>>v;
if(v ==1)
choosenv=ven[0];
pricecv=priceV[0];
}
else if(v==2)
choosenv=ven[1];
pricecv=priceV[1];
cout<<"\n===============================================\nThe choosen
Venue : "<<choosenv<<endl;
cout<<"Price : RM "<<pricecv<<endl;
cout<<"===============================================\n\n";
system("pause");
system("cls");
cout<<"\n\n\t\tAnother step! Now, you just have to select you food\n\n ";
system("pause");
food();
void addon()
system("cls");
int hh;
cin>>hh;
if(hh==1)
photo();
else if(hh==2)
bridal();
}
void food()
int vv;
system("cls");
cout<<"\n\t=================================\n\tFOOD\n\t=====================
============\n";
cout<<"-----------------------------------------------------------------------------------\n";
cout<<"-----------------------------------------------------------------------------------\n";
int f;
cin>>f;
if(f ==1)
fD= ffood[0];
pF= priceF[0];
else if(f==2)
{
fD= ffood[1];
pF= priceF[1];
cout<<"Price : RM "<<pF<<endl<<endl;
system("pause");
system("cls");
cout<<"\n\n\tNow, you are done! Do want to add any thing ?\n\n\t< 1 > No\n\t< 2 >
Yes !\n\n\t>>";
cin>>vv;
if(vv==2)
addon();
else
receipt();
void bridal()
char cc;
system("cls");
cout<<"\n\t=================================\n\tBRIDAL
DAIS\n\t=================================\n";
cout<<"\n\tWhat type of bridal dais you would pick?\n";
cout<<"-----------------------------------------------------------------------------------\n";
cout<<"-----------------------------------------------------------------------------------\n";
int b;
float B;
cin>>b;
if(b ==1)
Bd= bridalb[0];
B= priceB[0];
else if(b==2)
Bd= bridalb[1];
B= priceB[1];
}
else if(b==3)
Bd= bridalb[2];
B= priceB[2];
totaladd+=B;
cout<<"Price : RM "<<B<<endl;
cin>>cc;
if(cc=='y'or cc=='Y')
addon();
else
receipt();
void photo()
int pb;
char cc;
system("cls");
cout<<"\n\t=================================\n\tPHOTOBOOTH\n\t==============
===================\n";
cout<<"-----------------------------------------------------------------------------------\n";
cout<<"1 - No = RM 0\n";
cin>>pb;
if(pb ==1)
ppt= pbooth[0];
bbooth= priceG[0];
else if(pb==2)
ppt= pbooth[1];
bbooth= priceG[1];
totaladd+=bbooth;
cout<<"\nPhotobooth : "<<ppt<<endl;
cout<<"Price : RM "<<bbooth<<endl<<endl;
cin>>cc;
if(cc=='y'or cc=='Y')
addon();
else
receipt();
}
void receipt()
system("cls");
cout<<"\n\t=================================\n\tCUSTOMER'S
DETAILS\n\t=================================\n";
cin>>name;
cin>>num;
cin>>date;
cin>>em;
float ttotal;
system("cls");
ttotal=totaladd+pF+pricePackage+pricecv;
cout.setf(ios::fixed);
cout.precision(2);
cout<<setw(84)<<setfill('*')<<endl;
cout<<"NAME : "<<name<<endl;
cout<<"EMAIL : "<<em<<endl;
cout<<"TYPE OF WEDDING PACKAGE : "<<package1<<endl;
cout<<"\nPHOTOBOOTH : "<<ppt<<endl;
cout<<setw(84)<<setfill('*')<<endl;