Mini Project CSC425

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 22

PORTFOLIO REPORT WRITING (2019)

EWC 661
TOPIC : THE RELATIONSHIP BETWEEN EATING
HABITS AND FAMILY UPBRINGING AMONG
UITM CAWANGAN PULAU PINANG KAMPUS
PERMATANG PAUH STUDENTS

NAME Noor Najihah bt Hashim (2016647752)

CLASS PEC221 6D1

LECTURER NAME Madam Noor Laili bt Mohd Yusof


#include<iostream>

#include <iomanip>

using namespace std;

void menu();

void Display();

void packagesel();

void Venue();

void food();

void bridal();

void photo();

void choicess();

void addon();

void details();

void receipt();

string package[3]={"Package A", "Package B", "Package C"};

float price[3]={30000,20000,10000};

string ven[2]={"Hall","Garden"};

float priceV[2]={2500,5000},pricecv=0;

string ffood[2]={"Malay Cuisine","Western Cuisine"};

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<<setw(20)<<"\n\n\t\t\t\t**************WELCOME TO HUJI WEDDING


PACKAGE!**************"<<endl;

cout<<"\tWe offer different wedding packages that provide happy couples with a variety of
attractive special offers."<<endl;

cout<<"\t\t\tThese packages are created to make your wedding planning as easy as


possible!"<<endl;

cout<<"\n\n\t\t\t\t1. PACKAGE \n\t\t\t\t2. PACKAGE SELECTION";

cout<<"\n\n\tPLEASE ENTER YOUR CHOICE >>>> ";

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<<"\n\t*The packages that we offer : "<<endl;

cout<<"\n\n1 - PACKAGE A = RM 30,000 (1000 pax)\n";

cout<<setw(20)<<"\t\t***FOOD***"<<endl;

cout<<"\t\t-Tailored made-menu prepared by the Chef (customization)"<<endl;

cout<<setw(20)<<"\n\t\t***BRIDAL DAIS DECORATION***"<<endl;

cout<<setw(20)<<"\n\t\t***BRIDAL SERVICES***"<<endl;

cout<<"\t\t-Hand bouquet (fresh flowers)"<<endl;

cout<<setw(20)<<"\n\t\t***COMPLIMENTARY***"<<endl;

cout<<"\t\t-4 tiers cakes"<<endl;

cout<<setw(20)<<"\n\t\t***PA SYSTEM & DJ***"<<endl;

cout<<"\n\n2 - PACKAGE B = RM 20,000 (1000 pax)\n";

cout<<setw(20)<<"\t\t***MAIN DISH***"<<endl;

cout<<"\t\t-Tailored made-menu prepared by the Chef (customization)"<<endl;

cout<<setw(20)<<"\n\t\t***BRIDAL DAIS DECORATION***"<<endl;

cout<<setw(20)<<"\n\t\t***BRIDAL SERVICES***"<<endl;

cout<<"\t\t-Hand bouquet with artificial flowers"<<endl;

cout<<setw(20)<<"\n\t\t***PA SYSTEM & DJ***"<<endl;

cout<<"\n\n3 - PACKAGE C = RM 10,000 (1000 pax)\n";

cout<<setw(20)<<"\t\t***MAIN DISH***"<<endl;

cout<<"\t\t-Tailored made-menu prepared by the Chef (customization)"<<endl;

cout<<setw(20)<<"\n\t\t***BRIDAL SERVICES ***"<<endl;

cout<<"\t\t-1 x Makeup (during reception)"<<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-2 tiers cakes"<<endl;

cout<<"\t\t-Photobooth"<<endl;

cout<<setw(20)<<"\n\t\t***PA SYSTEM & DJ***"<<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<<"1 - Package A = RM 30,000 (1000 pax)\n";

cout<<"2 - Package B = RM 20,000 (1000 pax)\n";

cout<<"3 - Package C = RM 10,000 (1000 pax)\n";

cout<<"-------------------------------------------------------\n";
cout<<"Note: For any chosen wedding package we might need 50% of the total price
as deposit. Thank you :)";

cout<<"\n\nI choose Wedding Package = ";

cin>>code;

if(code ==1)

package1= package[0];

pricePackage= price[0];

else if(code ==2)

package1= package[1];

pricePackage= price[1];

else if(code ==3)

package1= package[2];

pricePackage= price[2];

cout<<"\nI choose Package : "<<package1<<endl;


cout<<"Price : RM "<<pricePackage<<endl;

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<<"< 1 > HALL = RM 2,500\n";

cout<<"< 2 > GARDEN = RM 5,000\n";

cout<<"-----------------------------------------------------------------------------------\n";

float p;

int v;

cout<<"Enter your venue : ";

cin>>v;

while(v!=1 and v!=2 and v!=3)

cout<<"Please Enter 1,2 or 3 : ";

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;

cout<<"\n\nThis is the list of add on that we provide...\n\n\n1. PHOTOBOOTH\n2. BRIDAL


DAIS ";

cout<<"\n\nWhat do you want to add ? >> ";

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\t*Select your food.\n";

cout<<"-----------------------------------------------------------------------------------\n";

cout<<"1 - Malay Cuisine = RM 4000\n";

cout<<"2 - Western Cuisine = RM 10000\n";

cout<<"-----------------------------------------------------------------------------------\n";

int f;

cout<<"Enter your chosen Food : ";

cin>>f;

if(f ==1)

fD= ffood[0];

pF= priceF[0];

else if(f==2)
{

fD= ffood[1];

pF= priceF[1];

cout<<"\nI choose Food: "<<fD<<endl;

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<<"1 - No bridal dais = RM 0\n";

cout<<"2 - Bridal dais with artificial flowers = RM 3000\n";

cout<<"3 - Bridal dais with fresh flowers = RM 10,000\n";

cout<<"-----------------------------------------------------------------------------------\n";

int b;

float B;

cout<<"Enter your chosen Bridal Dais : ";

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<<"\nI choose Bridal Dais : "<<Bd<<endl;

cout<<"Price : RM "<<B<<endl;

cout<<"\n\n\nDo you want to add anything? ( y / n )? >> ";

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\t*Do you want to add Photobooth?\n";

cout<<"-----------------------------------------------------------------------------------\n";

cout<<"1 - No = RM 0\n";

cout<<"2 - Yes = RM 1000\n";


cout<<"-----------------------------------------------------------------------------------\n\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;

cout<<"\n\nDo you want to add anything? ( y / n )? >> ";

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";

cout<<"\n\t*Please enter your details\n";

cout<<"\n\tEnter name : ";

cin>>name;

cout<<"\n\tPhone number : ";

cin>>num;

cout<<"\n\tDate of wedding ceremony : ";

cin>>date;

cout<<"\n\tEnter email : ";

cin>>em;

float ttotal;

system("cls");

ttotal=totaladd+pF+pricePackage+pricecv;

cout.setf(ios::fixed);

cout.precision(2);

cout<<setw(84)<<setfill('*')<<endl;

cout<<"\nWELCOME TO HUJI WEDDING PACKAGE\n"<<endl;

cout<<"Hi! Thank you for trusting our services.\n"<<endl;

cout<<"NAME : "<<name<<endl;

cout<<"PHONE NUMBER : "<<num<<endl;

cout<<"DATE OF CEREMONY : "<<date<<endl;

cout<<"EMAIL : "<<em<<endl;
cout<<"TYPE OF WEDDING PACKAGE : "<<package1<<endl;

cout<<"WEDDING VENUE : "<<choosenv<<endl;

cout<<"CHOSEN FOOD : "<<fD;

cout<<"\nPHOTOBOOTH : "<<ppt<<endl;

cout<<"BRIDAL DAIS : "<<Bd<<endl;

cout<<"\nTOTAL DEPOSIT : "<<"RM "<<ttotal*0.5<<endl;

cout<<"TOTAL PAYMENT : "<<"RM "<<ttotal<<endl;

cout<<setw(84)<<setfill('*')<<endl;

You might also like