Electronic Store Management System Oop in C++ (Complete)

Student   of Avionics engineering Badar Ali 

#include<iostream>

#include<fstream>

using namespace std;

class calculation

{


public:

double d,p,Rs,remaining;

void calc()


{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

};

class mobile

{

public:

int c,m,p,remaining;

void mob()

{

b:

cout<<"Enter the company of mobile you want\n";

cout<<"[1].Samsung\n[2]Apple\n[3]Huawei\n[4]LG\n";

cin>>c;

if(c==1)

{a:

                 

cout<<"     <<<<<<Samsung>>>>>>>>>"<<endl;

cout<<"Samsung mobiles are as follows"<<endl;

cout<<"[1].Galaxy A80\n[2]Galaxy M30\n.[3]Galaxy M10\n[4]Galaxy S10\n";

cout<<"which mobile you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p;

cout<<"u have chosen galaxy A80\n"<<endl;

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

double Rs=10000;

    void calc();}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto a;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen galaxy M30\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto a;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen galaxy M10\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto a;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen galaxy S10\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto a;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

ofstream fout;

fout.open("mob1.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==2)

{c:

                     

cout<<"     <<<<<<Apple>>>>>>>>>"<<endl;

cout<<"Apple mobiles are as follows"<<endl;

cout<<"[1].IPhone 4\n[2]IPhone 5\n.[3]IPhone 7\n[4]IPhone 10s\n";

cout<<"Which mobile you want"<<endl;

cin>>m;

if(m==1)

{

double d,p,Rs=10000;

cout<<"you have chosen IPhone 4\n"<<endl;

cout<<"Its price is only Rs:10,000\n";

cout<<"You want to buy\n:.1 for Yes and 2 for No"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have don't enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto c;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen IPhone 5\n"<<endl;

cout<<"its price is only Rs:20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto c;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen IPhone 7\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto c;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen IPhone 10s\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto c;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==3)

{d:

  

cout<<"     <<<<<<Huawei>>>>>>>>>"<<endl;

cout<<"Huawei mobiles are as follows"<<endl;

cout<<"[1].Huawei p9\n[2]Huawei P20\n.[3]Huawei Y9\n[4]Huawei P30 PRO\n";

cout<<"which mobile u want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen Huawei p9()\n"<<endl;

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto d;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen Huawei P20\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto d;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen Huawei Y9\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto d;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen Huawei P30 PRO\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto d;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==4)

{e:

cout<<"     <<<<<<<<LG>>>>>>>>>"<<endl;

cout<<"LG mobiles are as follows"<<endl;

cout<<"[1].LG G6\n[2]\nLG G8[3]\nLG V30[4]LG V40 PRO\n";

cout<<"Which mobile u want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen LG G6()\n"<<endl;

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto e;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen LG G8\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto e;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen LG V30\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto e;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

}

if(m==4)

{

double d,p,Rs=40000;

cout<<"u have chosen LG V40 PRO\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto e;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto b;

system("pause");

            system("cls");

}

}

system("pause");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

}

};

class led

{

public:

int e,m,p,remaining;

void LED()

{

f:

cout<<"Enter the company of LED you want\n";

cout<<"[1].Samsung\n[2]Sony\n[3]Orient\n[4]Dell\n";

cin>>e;

if(e==1)

{g:

                 

cout<<"     <<<<<<Samsung>>>>>>>>>"<<endl;

cout<<"Samsung LEd are as follows"<<endl;

cout<<"[1].24 inches LED\n[2]30 inches\n.[3]40 inches LED\n[4]samsung 'Q' LED\n";

cout<<"which LED you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen 24 inches LED\n";

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto g;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen 30 inches\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto g;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen 40 inches LED\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto g;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen samsung 'Q LED'\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto g;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

ofstream fout;

fout.open("LED1.txt",ios::out|ios::app);

fout<<endl<<e<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

system("pause");

system("cls");

}

}

else if(e==2)

{z:

                 

cout<<"     <<<<<<Sony>>>>>>>>>"<<endl;

cout<<"Sony LEd are as follows"<<endl;

cout<<"[1].24 inches LED\n[2]30 inches\n.[3]40 inches LED\n[4]sony 'Q' LED\n";

cout<<"which LED you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen 24 inches LED\n";

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto z;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen 30 inches\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto z;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

else  if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen 40 inches LED\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto z;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

else if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen sony 'Q LED'\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto z;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

ofstream fout;

fout.open("LED1.txt",ios::out|ios::app);

fout<<endl<<e<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

system("pause");

system("cls");

}

}

else if(e==3)

{x:

                 

cout<<"     <<<<<<<<Orient>>>>>>>>>"<<endl;

cout<<"Orient LEd are as follows"<<endl;

cout<<"[1].24 inches LED\n[2]30 inches\n.[3]40 inches LED\n[4]Orient 'Q' LED\n";

cout<<"which LED you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen 24 inches LED\n";

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto x;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen 30 inches\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto x;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen 40 inches LED\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto x;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen Orient 'Q LED'\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto x;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

ofstream fout;

fout.open("LED1.txt",ios::out|ios::app);

fout<<endl<<e<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

system("pause");

system("cls");

}

}

else if(e==4)

{v:

                 

cout<<"     <<<<<<Dell>>>>>>>>>"<<endl;

cout<<"Dell LEd are as follows"<<endl;

cout<<"[1].24 inches LED\n[2]30 inches\n.[3]40 inches LED\n[4]Orient 'Q' LED\n";

cout<<"which LED you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=10000;

cout<<"u have chosen 24 inches LED\n";

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen 30 inches\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=30000;

cout<<"u have chosen 40 inches LED\n"<<endl;

cout<<"its price is only Rs30,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen Dell'Q LED'\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another LED[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto f;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

}

ofstream fout;

fout.open("LED1.txt",ios::out|ios::app);

fout<<endl<<e<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

};

class machines

{

public:

int c,m,p,remaining;

void mach()

{

q:

cout<<"Enter the company of who's products u want to buy\n";

cout<<"[1].LG\n[2]Haier\n[3]Orient\n[4]Dawlance\n";

cin>>c;

if(c==1)

{n:

                 

cout<<"     <<<<<<LG>>>>>>>>>"<<endl;

cout<<"LG home appliances are as follows"<<endl;

cout<<"[1]1.5 Ton Air Conditoner\n[2]Microwave Oven\n.[3]Automatic Washing Machine\n[4]Fridge\n";

cout<<"which Product you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=50000;

cout<<"u have chosen 1.5 Ton Air Conditoner\n"<<endl;

cout<<"its price is only Rs10,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto n;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=25000;

cout<<"u have chosen Microwave Oven\n"<<endl;

cout<<"its price is only Rs25,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto n;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=50000;

cout<<"u have chosen Automatic Washing Machine\n"<<endl;

cout<<"its price is only Rs50,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto n;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen Fridge\n"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto n;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

ofstream fout;

fout.open("mob1.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==2)

{v:

                     

cout<<"     <<<<<<Haier>>>>>>>>>"<<endl;

cout<<"Haier producta are as follow"<<endl;

cout<<"[1].2 Ton Air Conditoner 4\n[2]Microvawe Oven 5\n.[3]Automatic Washing Machine\n[4]Fridge\n";

cout<<"Which Product you want"<<endl;

cin>>m;

if(m==1)

{

double d,p,Rs=60000;

cout<<"you have chosen 2 Ton Air Conditoner\n"<<endl;

cout<<"Its price is only Rs:6,000\n";

cout<<"You want to buy\n:.1 for Yes and 2 for No"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have don't enough money\n";

}

}

else

{

int o;

cout<<"u wan another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=25000;

cout<<"u have chosen Microvawe Oven "<<endl;

cout<<"its price is only Rs:25,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u want another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=55000;

cout<<"u have chosen Automatic Washing Machine"<<endl;

cout<<"its price is only Rs55,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u want another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto v;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==4)

{

system("cls");

double d,p,Rs=40000;

cout<<"u have chosen Fridge"<<endl;

cout<<"its price is only Rs40,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==3)

{zx:

  

cout<<"     <<<<<<<<Orient>>>>>>>>>"<<endl;

cout<<"Orient Products are as follows"<<endl;

cout<<"[1].2 Ton Air Conditoner 4\n[2]Microvawe Oven\n.[3]Automatic Washing Machine\n[4]Fridge\n";

cout<<"which Product you want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=50000;

cout<<"You have chosen 2 Ton Air Conditoner ()\n"<<endl;

cout<<"its price is only Rs50,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto zx;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=22500;

cout<<"u have chosen Microvawe Oven "<<endl;

cout<<"its price is only Rs22,500\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"You want another mobile\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto zx;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=49500;

cout<<"You have chosen Automatic Washing Machine"<<endl;

cout<<"its price is only Rs49,500\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto zx;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

}

if(m==4)

{

system("cls");

double d,p,Rs=42500;

cout<<"You have chosen Fridge"<<endl;

cout<<"its price is only Rs42,500\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto zx;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

system("pause");

if(c==4)

{cv:

cout<<"     <<<<<<<<<<Dawlance>>>>>>>>>"<<endl;

cout<<"Dawlance Products are as follows"<<endl;

cout<<"[1].1.5 Ton Air Conditoner 4\n[2]Microvawe Oven 5\n.[3]Automatic Washing Machine\n[4]Fridge\n[5]Iron\n";

cout<<"Which Product u want"<<endl;

cin>>m;

system("cls");

if(m==1)

{

double d,p,Rs=39000;

cout<<"u have chosen 1.5 Ton Air Conditoner\n"<<endl;

cout<<"its price is only Rs39,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying ammount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"You wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==2)

{

system("cls");

double d,p,Rs=20000;

cout<<"u have chosen LG G8\n"<<endl;

cout<<"its price is only Rs20,000\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

system("cls");

}

if(m==3)

{

system("cls");

double d,p,Rs=29300;

cout<<"You have chosen Microvawe Oven \n"<<endl;

cout<<"its price is only Rs29,300\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

    cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaing amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

}

if(m==4)

{

double d,p,Rs=51100;

cout<<"u have chosen Automatic Washing Machine\n"<<endl;

cout<<"its price is only Rs51,100\n";

cout<<"you want to buy\n1 for yes and 2 for no"<<endl;

cin>>d;

if(d==1)

{

cout<<"paying amoount"<<endl;

cin>>p;

cout<<"given amount ="<<p;

remaining=p-Rs;

if(p>Rs)

{

cout<<"remaning amount"<<remaining<<endl;

    }

   else if(p==Rs)

{

cout<<"no reaming amount"<<endl;

}

    else

    {

    cout<<"u have not enough money\n";

}

}

else

{

int o;

cout<<"u wan another Product\n[1]for choosing\n[2].main menu";

cin>>o;

switch(o)

{

case 1:

system ("cls");

goto cv;

system("pause");

            system("cls");

case 2:

    system ("cls");

goto q;

system("pause");

            system("cls");

}

}

system("pause");

}

ofstream fout;

fout.open("mob.txt",ios::out|ios::app);

fout<<endl<<c<<" "<<m<<" "<<p<<" "<<remaining;

fout.close();

}

}

};

class electronics:public mobile,public led,public machines,public calculation

{

public:

void show()

{

int t;

cout<<"1-mobile\n2-led\n3.electronics"<<endl;

cin>>t;

switch(t)

{

case 1:

{

mobile::mob();

calculation::calc();

break;

}

case 2:

{

led::LED();

calculation::calc();

break;

}

case 3:

{

machines::mach();

calculation::calc();

break;

}

case 4:

{

break;

}

}

}

};

int main()

{

    electronics obj;

    obj.show();

}





Post a Comment

0 Comments