Anda di halaman 1dari 31

#include <iostream.

h>//LIBRARIES USED
#include <stdlib.h>
#include <stdio.h>
#include<conio.h>
#include<time.h>
#include<string.h>
#include<fstream.h>
void welcome();//FUNCTIONS USED
void work();
void commercial();
void aluminum();
void glass();
void wood();
void aluass();
void aluood();
void glaood();
void alglod();
void bank();
void calculations(int, int);
int s,a,c,d,e,f,g,h,i,j,k,l,x,y,bb;//GLOBAL VARIADLES
unsigned int b;
double tax;
char user[50];
void main()//START OF MAIN FUNCTION
{char n;
do{ char choice;
welcome();
cout<<"\n\n";
cout<<"\tEnter the user name:";
cin>>user;

cout<<"\n\n";
cout<<"\tFor COMMERCIAL work please enter C"<<endl;
cout<<"\tFor DOMESTIC work please enter D"<<endl;

cout<<"\n\n";
cout<<"\tEnter the choice you want to enter ";
cin>>choice;
if (choice=='D')
{ system("cls");
system("color fd");
cout<<"\n\n\n\t\tYou have chosen DOMESTIC work"<<endl;
cout<<"\n\n";
cout<<"\tTHE TAX ON DOMESTIC WORK IS 5% \n";
tax=0.05;
work();
}
else if(choice=='C')
{ system("cls");
system("color fd");
cout<<"\n\n\n\t\tYou have chosen COMMERCIAL work"<<endl;
cout<<"\n\n";
cout<<"\tTHE TAX ON COMMERCIAL WORK IS 10% \n";
tax=0.1;
work();
}
else
cout<<"\t You enter the wrong choice"<<endl;
cout<<"\t Press Y to continue the program or any key to exit"<<endl;
cin>>n;

}
while (n=='Y');

}//END OF MAIN FUNCTION
void calculations(int x, int y)//START OF CALCULATION FUNCTION
{double price,mat,lab,prof,dis,total,tot1,tot;
char dc;
float dcg;
int z;
price=x*y;
system("cls");
system("color f1");

mat=(price*5)/100;
lab=mat;
prof=(price*15)/100;

cout<<"\n\n\n\t\t DO YOU WANT TO GIVE DISCOUNT\n\n\n";
cout<<"\tENTER Y TO GIVE DISCOUNT\n";
cout<<"\tENTER N TO GIVE NO DISCOUNT\n";
cout<<"\n\tENTER YOUR CHOICE ";
cin>>dc;
switch(dc)
{case 'Y':
cout<<"\n\n";
cout<<"\tHOW MUCH PERCENT OF DISCOUNT YOU WANT TO GIVE ";
cin>>dcg;
cout<<"\n\n";
if (dcg!=0 && dcg<=100)
{dis=(prof*dcg)/100;
cout<<"\n\n";
cout<<"\tTHE USER IS "<<user<<endl;
cout<<"=====================================================================
===========";
cout<<"*********************************************************************
***********";
cout<<"=====================================================================
===========";
char timeStr [10];
char dateStr [10];
_strdate(dateStr);
_strtime(timeStr);

cout<<"\tDate of Assesment:"<<dateStr<<endl<<endl;
cout<<"\tTime of Assesment:"<<timeStr<<endl<<endl;
total=(mat+lab+price+prof)-dis;
cout<<"\n\n";
tot1=total*tax;
tot=total+tot1;
cout<<"\tTHE TOTAL PRICE IS "<<price<<endl;
cout<<"\n\n";
cout<<"\tTHE COAST OF MATERIALS IS "<<mat<<endl;
cout<<"\n\n";
cout<<"\tTHE COAST OF LABOUR IS "<<lab<<endl;
cout<<"\n\n";
cout<<"\tTHE PROFIT IS "<<prof<<endl;
cout<<"\n\n";
cout<<"\tTHE GOVT TAX ON WORK IS "<<tot1<<endl;
cout<<"\n\n";
cout<<"\tTHE DISCOUNT YOU GIVEN IS "<<dis<<endl;
cout<<"\n\n";
cout<<"\tTHE TOTAL EXPENDITURE IS "<<tot<<endl;
cout<<"\n\n";
ofstream zain("UMER_TRADERS.txt",ios::app);//STATR OF FILE SYSTEM
cout<<"\n\n";
zain<<"THE USER IS "<<user<<endl;
zain<<"\tDate of Assesment:"<<dateStr<<endl<<endl;
zain<<"\tTime of Assesment:"<<timeStr<<endl<<endl;
zain<<"\tTHE TOTAL PRICE IS "<<price<<endl;
zain<<"\n\n";
zain<<"\tTHE COAST OF MATERIALS IS "<<mat<<endl;
zain<<"\n\n";
zain<<"\tTHE COAST OF LABOUR IS "<<lab<<endl;
zain<<"\n\n";
zain<<"\tTHE PROFIT IS "<<prof<<endl;
zain<<"\n\n";
zain<<"\tTHE GOVT TAX ON WORK IS "<<tot1<<endl;
zain<<"\n\n";
zain<<"\tTHE DISCOUNT YOU GIVEN IS "<<dis<<endl;
zain<<"\n\n";
getch();
system("cls");
system("color f6");
cout<<"\n\n";
cout<<"\n\n";
cout<<"\n\n";
cout<<"\tIN WHICH FORM YOU RECEVED UR EXPINDETURE\n"<<endl;
cout<<"\n\n";
cout<<"\tCASH OR CHEAK OR ONLINE TRANSFER \n"<<endl;
cout<<"\n\n";
cout<<"\tFOR CASH PRESS 1"<<endl;
cout<<"\tFOR CHEAK PRESS 2"<<endl;
cout<<"\tFOR ONLINE TRANSFER PRESS 3"<<endl;
cout<<"\n\n";
cout<<"\n\tENTER YOUR CHOICE ";
cin>>z;
system("cls");
system("color f2");
if (z==1)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN CASH"<<endl;
bank();
}
else if(z==2)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN CHEAK"<<endl;
bank();}
else if(z==3)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN ONLINE TRANSFER"<<endl;
bank();}
else
cout<<"\tYOU ENTERED AWRONG CHOICE"<<endl;

}
else
{ cout<<"\n\n";
cout<<"\t YOU ARE KIDDING\n";}
break;
case 'N':
cout<<"\t THE USER IS "<<user<<endl;
char timeStr [10];
char dateStr [10];
_strdate(dateStr);
_strtime(timeStr);
cout<<"\tDate of Assesment:"<<dateStr<<endl<<endl;
cout<<"\tTime of Assesment:"<<timeStr<<endl<<endl;
total=(mat+lab+price+prof);
cout<<"\n\n";
tot1=total*tax;
tot=total+tot1;
cout<<"\tTHE TOTAL PRICE IS "<<price<<endl;
cout<<"\n\n";
cout<<"\tTHE COAST OF MATERIALS IS "<<mat<<endl;
cout<<"\n\n";
cout<<"\tTHE COAST OF LABOUR IS "<<lab<<endl;
cout<<"\n\n";
cout<<"\tTHE PROFIT IS "<<prof<<endl;
cout<<"\n\n";
cout<<"\tTHE GOVT TAX ON WORK IS "<<tot1<<endl;
cout<<"\n\n";
cout<<"\tTHE TOTAL EXPENDITURE IS "<<tot<<endl;
ofstream zain("UMER_TRADERS.txt",ios::app);//START OF FILE SYSTE
M
cout<<"\n\n";
zain<<"THE USER IS "<<user<<endl;
zain<<"\tDate of Assesment:"<<dateStr<<endl<<endl;
zain<<"\tTime of Assesment:"<<timeStr<<endl<<endl;
zain<<"\tTHE TOTAL PRICE IS "<<price<<endl;
zain<<"\n\n";
zain<<"\tTHE COAST OF MATERIALS IS "<<mat<<endl;
zain<<"\n\n";
zain<<"\tTHE COAST OF LABOUR IS "<<lab<<endl;
zain<<"\n\n";
zain<<"\tTHE PROFIT IS "<<prof<<endl;
zain<<"\n\n";
zain<<"\tTHE GOVT TAX ON WORK IS "<<tot1<<endl;
zain<<"\n\n";
getch();
system("cls");
system("color f6");
cout<<"\n\n";
cout<<"\n\n";
cout<<"\n\n";
cout<<"\tIN WHICH FORM YOU RECEVED UR EXPINDETURE\n"<<endl;
cout<<"\n\n";
cout<<"\tCASH OR CHEAK OR ONLINE TRANSFER \n"<<endl;
cout<<"\n\n";
cout<<"\tFOR CASH PRESS 1"<<endl;
cout<<"\tFOR CHEAK PRESS 2"<<endl;
cout<<"\tFOR ONLINE TRANSFER PRESS 3"<<endl;
cout<<"\n\n";
cout<<"\n\tENTER YOUR CHOICE ";
cin>>z;
system("cls");
system("color f2");
if (z==1)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN CASH"<<endl;
bank();
}
else if(z==2)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN CHEAK"<<endl;
bank();}
else if(z==3)
{cout<<"\tYOU RECEVIED YOUR EVPINDETURE IN ONLINE TRANSFER"<<endl;
bank();}
else
cout<<"\tYOU ENTERED AWRONG CHOICE"<<endl;



}
}//END OF CALCULATION FUNCTION
void work()//START OF WORK FUNCTION
{
cout<<"\tTo proced follow the instructions given carefully\n\n"<<endl;
cout<<"\tFor Aluminum work enter 1"<<endl;
cout<<"\tFor Glass work enter 2"<<endl;
cout<<"\tFor Wood work enter 3"<<endl;
cout<<"\tFor Aluminum & Glass work enter 4"<<endl;
cout<<"\tFor Aluminum & Wood work enter 5"<<endl;
cout<<"\tFor Glass & Wood work enter 6"<<endl;
cout<<"\tFor Glass & Wood & Aluminum work enter 7"<<endl;
cout<<"\n\n";
cout<<"\tEnter the choice you want to enter ";
cin>>s;
system("cls");
system("color f0");
if (s==1)
aluminum();
else if (s==2)
glass();
else if (s==3)
wood();
else if (s==4)
aluass();
else if (s==5)
aluood();
else if (s==6)
glaood();
else if (s==7)
alglod();
else
cout<<"\tYOU ENTERED AWRONG CHOICE\n";
}//END OF WORK FUNCTION
void welcome()//START OF WELCOME FUNCTION
{ //
system("color f8");
cout<<"\n\n\n\n\n\n\n\t\t# # \
n";
cout<<"\t\t# # # ###### # #### #### # # ###### \n";

cout<<"\t\t# # # # # # # # # ## ## # \n";

cout<<"\t\t# # # ##### # # # # # ## # ##### \n";

cout<<"\t\t# # # # # # # # # # # \n";

cout<<"\t\t# # # # # # # # # # # # \n";

cout<<"\t\t ## ## ###### ###### #### #### # # ######\n";
cout<<" "<<endl;
for(i=0; i<=99999999; i++)
{
}
cout<<"\tFor perfect use of this software carefully follow the instructions"
<<endl;
cout<<"\n\n";
cout<<"\tthe amount of work entered must be less than 300 sqr feets"<<en
dl;
for(i=0; i<=599999999; i++)
{
}
for(i=0; i<=99999999; i++)
{
}

}//END OF WELCOME FUNCTION
void aluminum()//START OF ALUMINUM FUNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Aluminum work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Aluminum avalible"<<endl;
cout<<"\tFor categary A enter 1"<<endl;
cout<<"\tFor categary B enter 2"<<endl;
cout<<"\tFor categary C enter 3"<<endl;
cout<<"\n\n"<<endl;
cout<<"\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have choosen categary A Aluminum"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=d;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have choosen categary B Aluminum"<<endl;

cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=e;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have choosen categary C Aluminum"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=f;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered a wrong choice"<<endl;
}}//END OF ALUMINUM FUNCTION
void glass()//START OF GLASS FUNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Glass work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Glass avalible"<<endl;
cout<<"\tFor categary A enter 1"<<endl;
cout<<"\tFor categary B enter 2"<<endl;
cout<<"\tFor categary C enter 3"<<endl;
cout<<"\n\n"<<endl;
cout<<"\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have choosen categary A Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=g;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have choosen categary B Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=h;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have choosen categary C Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=i;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered a wrong choice"<<endl;
}}//END OF GLASS FUNCTION
void wood()//START OF WOOD FUNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Wood work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Wood avalible"<<endl;
cout<<"\tFor categary A enter 1"<<endl;
cout<<"\tFor categary B enter 2"<<endl;
cout<<"\tFor categary C enter 3"<<endl;
cout<<"\n\n"<<endl;
cout<<"\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have choosen categary A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=j;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have choosen categary B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=k;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have choosen categary C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=l;
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered a wrong choice"<<endl;}}//END OF WOOD FUNCTION
void aluass()//START OF ALUASS FYNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Aluminum & Glass work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Aluminum avalible"<<endl;
cout<<"\tWe have three categares of Glass avalible"<<endl;
cout<<"\tFor categary A Aluminum & For categary A Glass enter 1"<<endl;
cout<<"\tFor categary A Aluminum & For categary B Glass enter 2"<<endl;
cout<<"\tFor categary A Aluminum & For categary C Glass enter 3"<<endl;
cout<<"\tFor categary B Aluminum & For categary A Glass enter 4"<<endl;
cout<<"\tFor categary B Aluminum & For categary B Glass enter 5"<<endl;
cout<<"\tFor categary B Aluminum & For categary C Glass enter 6"<<endl;
cout<<"\tFor categary C Aluminum & For categary A Glass enter 7"<<endl;
cout<<"\tFor categary C Aluminum & For categary B Glass enter 8"<<endl;
cout<<"\tFor categary C Aluminum & For categary C Glass enter 9"<<endl;
cout<<"\n\n\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry A Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+g);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry B Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+h);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry C Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+i);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 4:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry A Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+g);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
case 5:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry B Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+h);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 6:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry C Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+i);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 7:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry A Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+g);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 8:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry B Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+h);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 9:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry C Glass"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+i);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered wrong choice"<<endl;}}//END OF ALUASS FUNCTION
void aluood()//START OF ALUOOD FUNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Aluminum & Wood work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Aluminum avalible"<<endl;
cout<<"\tWe have three categares of Wood avalible"<<endl;
cout<<"\tFor categary A Aluminum & For categary A Wood enter 1"<<endl;
cout<<"\tFor categary A Aluminum & For categary B Wood enter 2"<<endl;
cout<<"\tFor categary A Aluminum & For categary C Wood enter 3"<<endl;
cout<<"\tFor categary B Aluminum & For categary A Wood enter 4"<<endl;
cout<<"\tFor categary B Aluminum & For categary B Wood enter 5"<<endl;
cout<<"\tFor categary B Aluminum & For categary C Wood enter 6"<<endl;
cout<<"\tFor categary C Aluminum & For categary A Wood enter 7"<<endl;
cout<<"\tFor categary C Aluminum & For categary B Wood enter 8"<<endl;
cout<<"\tFor categary C Aluminum & For categary C Wood enter 9"<<endl;
cout<<"\n\n\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Alumimum & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 4:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 5:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 6:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Alumimum & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 7:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 8:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 9:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Alumimum & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered wrong choice"<<endl;
}
}//END OF ALUOOD FUNCTION
void glaood()//STATR OF GLAOOD FUNCTION
{ cout<<"\n\n";
cout<<"\tYou haven chosen Glass & Wood work"<<endl;
cout<<"\n\n";
cout<<"\tWe have three categares of Glass avalible"<<endl;
cout<<"\tWe have three categares of Wood avalible"<<endl;
cout<<"\tFor categary A Glass & For categary A Wood enter 1"<<endl;
cout<<"\tFor categary A Glass & For categary B Wood enter 2"<<endl;
cout<<"\tFor categary A Glass & For categary C Wood enter 3"<<endl;
cout<<"\tFor categary B Glass & For categary A Wood enter 4"<<endl;
cout<<"\tFor categary B Glass & For categary B Wood enter 5"<<endl;
cout<<"\tFor categary B Glass & For categary C Wood enter 6"<<endl;
cout<<"\tFor categary C Glass & For categary A Wood enter 7"<<endl;
cout<<"\tFor categary C Glass & For categary B Wood enter 8"<<endl;
cout<<"\tFor categary C Glass & For categary C Wood enter 9"<<endl;
cout<<"\n\n\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Glass & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(g+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 2:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Glass & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(g+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 3:
cout<<"\n\n";
cout<<"\tYou have chosen categary A Glass & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(g+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 4:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Glass & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(h+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 5:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Glass & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(h+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 6:
cout<<"\n\n";
cout<<"\tYou have chosen categary B Glass & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(h+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 7:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Glass & catagry A Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(i+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 8:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Glass & catagry B Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(i+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
case 9:
cout<<"\n\n";
cout<<"\tYou have chosen categary C Glass & catagry C Wood"<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(i+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;
break;
default:
cout<<"\tYou entered wrong choice"<<endl;
}}//END OF GLAOOD FUNCTION
void alglod()//STATR OF ALGLOD FUNCTION
{cout<<"\n\n";
cout<<"\tYou have chosen Aluminum & Glass & Wood"<<endl;
cout<<"\n\n";
cout<<"\tFor categary A Aluminum & categary A Wood & categary A Glass ent
er 1"<<endl;
cout<<"\tFor categary A Aluminum & categary A Wood & categary B Glass ent
er 2"<<endl;
cout<<"\tFor categary A Aluminum & categary A Wood & categary C Glass ent
er 3"<<endl;
cout<<"\tFor categary A Aluminum & categary B Wood & categary A Glass ent
er 4"<<endl;
cout<<"\tFor categary A Aluminum & categary B Wood & categary B Glass ent
er 5"<<endl;
cout<<"\tFor categary A Aluminum & categary B Wood & categary C Glass ent
er 6"<<endl;
cout<<"\tFor categary A Aluminum & categary C Wood & categary A Glass ent
er 7"<<endl;
cout<<"\tFor categary A Aluminum & categary C Wood & categary B Glass ent
er 8"<<endl;
cout<<"\tFor categary A Aluminum & categary C Wood & categary C Glass ent
er 9"<<endl;
cout<<"\tFor categary B Aluminum & categary A Wood & categary A Glass ent
er 10"<<endl;
cout<<"\tFor categary B Aluminum & categary A Wood & categary B Glass ent
er 11"<<endl;
cout<<"\tFor categary B Aluminum & categary A Wood & categary C Glass ent
er 12"<<endl;
cout<<"\tFor categary B Aluminum & categary B Wood & categary A Glass ent
er 13"<<endl;
cout<<"\tFor categary B Aluminum & categary B Wood & categary B Glass ent
er 14"<<endl;
cout<<"\tFor categary B Aluminum & categary B Wood & categary C Glass ent
er 15"<<endl;
cout<<"\tFor categary B Aluminum & categary C Wood & categary A Glass ent
er 16"<<endl;
cout<<"\tFor categary B Aluminum & categary C Wood & categary B Glass ent
er 17"<<endl;
cout<<"\tFor categary B Aluminum & categary C Wood & categary C Glass ent
er 18"<<endl;
cout<<"\tFor categary C Aluminum & categary A Wood & categary A Glass ent
er 19"<<endl;
cout<<"\tFor categary C Aluminum & categary A Wood & categary B Glass ent
er 20"<<endl;
cout<<"\tFor categary C Aluminum & categary A Wood & categary C Glass ent
er 21"<<endl;
cout<<"\tFor categary C Aluminum & categary B Wood & categary A Glass ent
er 22"<<endl;
cout<<"\tFor categary C Aluminum & categary B Wood & categary B Glass ent
er 23"<<endl;
cout<<"\tFor categary C Aluminum & categary B Wood & categary C Glass ent
er 24"<<endl;
cout<<"\tFor categary C Aluminum & categary C Wood & categary A Glass ent
er 25"<<endl;
cout<<"\tFor categary C Aluminum & categary C Wood & categary B Glass ent
er 26"<<endl;
cout<<"\tFor categary C Aluminum & categary C Wood & categary C Glass ente
r 27"<<endl;
cout<<"\n\n\tEnter the choice you want to enter ";
cin>>a;
system("cls");
system("color fc");
switch (a)
{
case 1:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary A Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+g+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 2:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary A Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+h+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 3:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary A Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+i+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 4:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary B Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+g+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 5:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum Glass & categary B Wood & cat
egary B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+h+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 6:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary B Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+i+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 7:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary C Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+g+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 8:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary C Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+h+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 9:
cout<<"\n\n";
cout<<"\tYou have chossen categary A Aluminum & categary C Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary A Aluminum = ";
cin>>d;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(d+i+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 10:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary A Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+g+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 11:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary A Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+h+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 12:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary A Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+i+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 13:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary B Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+g+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 14:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary B Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+h+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 15:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary B Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+i+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 16:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary C Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+g+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 17:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary C Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+h+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 18:
cout<<"\n\n";
cout<<"\tYou have chossen categary B Aluminum & categary C Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary B Aluminum = ";
cin>>e;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(e+i+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 19:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary A Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+g+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 20:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary A Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+h+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 21:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary A Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary A Wood = ";
cin>>j;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+i+j);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 22:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary B Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+g+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 23:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary B Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+h+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 24:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary B Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary B Wood = ";
cin>>k;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+i+k);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 25:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary C Wood & categary
A Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary A Glass = ";
cin>>g;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+g+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 26:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary C Wood & categary
B Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary B Glass = ";
cin>>h;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+h+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;
case 27:
cout<<"\n\n";
cout<<"\tYou have chossen categary C Aluminum & categary C Wood & categary
C Glass "<<endl;
cout<<"\n\n";
cout<<"\tEnter the current rate of categary C Wood = ";
cin>>l;
cout<<"\tEnter the current rate of categary C Glass = ";
cin>>i;
cout<<"\tEnter the current rate of categary C Aluminum = ";
cin>>f;
cout<<"\tEnter the square feets of work u want to done = ";
cin>>b;
if (b<=300)
{
x=(f+i+l);
y=b;
calculations(x, y);}
else
cout<<"\tYOU ARE KIDDING"<<endl;

break;

default:
cout<<"\tYou entered a wrong choice"<<endl;
}
}//ENDOF ALGLOD FUNCTION
void bank()//STATR OF BANK FUNCTION
{

cout<<"\n\n";
cout<<"\tIN WHICH BANK YOU TRANSFERED YOUR EXPINDETURE"<<endl;
cout<<"\n\n";
cout<<"\t\tENTER 1 FOR ASKARI BANK"<<endl;
cout<<"\n\n";
cout<<"\t\tENTER 2 FOR BANK ALFALAH"<<endl;
cout<<"\n\n";
cout<<"\t\tENTER 3 FOR UNITED BANK"<<endl;
cout<<"\n\n";
cout<<"\t\tENTER 4 FOR NATIONAL BANK"<<endl;
cout<<"\n\n";
cout<<"\t\tENTER 5 FOR STANDARD CHARTERED"<<endl;
cout<<"\n\n";
cout<<"\tEnter the choice you want to enter ";
cin>>bb;
if (bb==1)
{cout<<"\n\n";
cout<<"\tYOU HAVE CHOSSEN ASKARI_BANK"<<endl;
}
else if(bb==2)
{cout<<"\n\n";
cout<<"\tYOU HAVE CHOSSEN BANK_ALFALAH"<<endl;}
else if(bb==3)
{cout<<"\n\n";
cout<<"\tYOU HAVE CHOSSEN UNITED BANK"<<endl;}
else if(bb==4)
{cout<<"\n\n";
cout<<"\tYOU HAVE CHOSSEN NATIONAL BANK"<<endl;}
else if(bb==5)
{cout<<"\n\n";
cout<<"\tYOU HAVE CHOSSEN STANDARD CHARTERED"<<endl;}
else
cout<<"\tYOU ENTERED AWRONG CHOICE"<<endl;

}//STATR OF BANK FUNCTION

Anda mungkin juga menyukai