badge

C++ Program to implement REAL ESTATE MANAGEMENT SYSTEM

Program in c++ for REAL ESTATE MANAGEMENT SYSTEM.....


OUTPUT OF THE PROGRAM:




SOURCE CODE:

#include<iostream.h>
#include<string.h>
#include<conio.h>
class land
{

protected:
double price;
char landname[50];
int landno;
float d1,d2;
int no_land;
public:
void intial()
{
cout<<"\n ** Enter the details for buying Land **\n ";
cout<<"\n Land name:\t";
cin>>landname;
cout<<"\n Enter the land number:\t";
cin>>landno;
cout<<"\n Enter the dimensions:\t";
cin>>d1>>d2;
cout<<"\n Enter the no of land:\t";
cin>>no_land;
}
void calculation()
{
price= d1*d2*2500*no_land;
}
void display()
{
cout<<"\n *** Details for the purchased Land *** \n";
cout<<"\n Land Name:\t"<<landname;
cout<<"\n Land Number:\t"<<landno;
cout<<"\n Dimensions are:\t"<<d1<<d2;
cout<<"\n Enter the no of land:\t"<<no_land;
cout<<"\n Total cost to be paid is:\t"<<price;
}
};
class shop
{
 protected:
 char shopname[50];
 int shopno;
 float d1,d2;
 int no_shop;
 double price2;
 public:
 void intial1()
{
cout<<"\n ** Enter the details for buying Shop ** \n";
cout<<"\n Shop name:\t";
cin>>shopname;
cout<<"\n Enter the Shop number:\t";
cin>>shopno;
cout<<"\n Enter the dimensions:\t";
cin>>d1>>d2;
cout<<"\n Enter the no of shop:\t";
cin>>no_shop;
}
void calculation1()
{
price2=d1*d2*5000*no_shop;
}
void display1()
{
 cout<<"\n *** Details for the purchased Shop *** \n";
 cout<<"\n Shop Name:\t"<<shopname;
cout<<"\n Shop Number:\t"<<shopno;
cout<<"\n Dimensions are:\t"<<d1<<d2;
cout<<"\n Enter the no of shop:\t"<<no_shop;
cout<<"\n Total cost to be paid is:\t"<<price2;
}
};
class bunglow
{
protected:
char bunglowname[100];
int bunglowno;
float price1;
public:
void intial2()
{
cout<<"\n ** Enter the details for buying Bunglow ** \n";
cout<<"\n Enter the Bunglow name:\t";
cin>>bunglowname;
cout<<"\n Enter the Bunglow number:\t";
cin>>bunglowno;
price1=999999;
}
void display2()
{
cout<<"\n *** Details for the purchased Bunglow *** \n";
cout<<"\n Bunglow Name:\t"<<bunglowname;
cout<<"\n Bunglow Number:\t"<<bunglowno;
cout<<"\n Price to be paid is:\t"<<price1;
}
};
class apartment
{
 protected:
 int n,num;
 long price;
 public:
 void intial3();

 };
 void apartment:: intial3()
  {
 cout<<"\n ** Enter the details for buying Apartments ** \n";
 cout<<"\n Press 1 for Single Apartment";
 cout<<"\n Press 2 for Deluxe Apartment";
 cout<<"\n Press 3 for Luxury Apartment";
 cout<<"\n\n Enter your choice:\t";
 cin>>num;

 switch(num)
 {
 case 1:
 cout<<"\n Enter the no of apartment u wanna to buy:\t";
 cin>>n;
 price=n*249999;break;
 case 2:
 cout<<"\n Enter the no of apartment u wanna to buy:\t";
 cin>>n;
 price=n*499999; break;
 case 3:
 cout<<"\n Enter the no of apartment u wanna to buy:\t";
 cin>>n;
 price=n*759999;break;
 default:
 cout<<"\n wrong choice \n";
 }

 cout<<"\n Total price to be paid is:\t"<<price;
 }
 class property:public land,public shop,public bunglow,public apartment
{
protected:
int choice;
public:
void display3();
};
void property:: display3()
{
cout<<"###**********************************###";
cout<<"\n *****BUYING COST OF PROPERTY***** \n";
cout<<"\n * For land it is 2500 per sq feet";
cout<<"\n * For shops it is 5000 sq feet";
cout<<"\n * For bunglow it is 999999 Rs.";
cout<<"\n * For single apartment it is 249999 Rs.";
cout<<"\n * For deluxe apartment it is 499999 Rs.";
cout<<"\n * For luxury apartment it is 759999 Rs";
cout<<"\n###*********************************###\n\n";
do
  {
  cout<<"\n Press 1 for Land";
  cout<<"\n Press 2 for Shops";
  cout<<"\n Press 3 for Bunglow";
  cout<<"\n Press 4 for Apartments";
  cout<<"\n Press 5 to Exit";
  cout<<"\n\n Eenter your Choice:\t";
  cin>>choice;
  switch(choice)
  {
case 1:
intial();
calculation();
display();break;
case 2:
intial1();
calculation1();
display1();break;
case 3:
intial2();
display2();break;
case 4:
intial3();break;
case 5:
cout<<"\n * Thanks for visting us *\n";
break;
default:
cout<<"\n Wrong Choice;\t Try Again";
}
}
while (choice!=5);
}

 int main()
 {



  char name[50],address[100];
  long int mobile;
  cout<<"\n####*****************************************************####\n\n";
  cout<<"\n !!*** WELCOME TO SINGH REAL ESTATE MANAGEMENT SYSTEM ***!! \n";
  property p;
  cout<<"\n\n";
  cout<<"\n Enter your Details\n";
  cout<<"\n Enter the Name:\t";
  cin>>name;
  cout<<"\n Enter the Address:\t";
  cin>>address;
  cout<<"\n Enter your mobile no:\t";
  cin>>mobile;
  p.display3();
  cout<<"\n\n BYE BYE ";
  cout<<"\n Have a nice day\n";
  cout<<"####********************************************************####";
return(0);
}


/* IF U FOUND ANY PROBLEM IN THIS PROGRAM  OR IF YOU HAVE ANY QUERY RELATED THIS PROGRAM THEN PLEASE COMMENT IN THIS POST OR YOU CAN DIRECTLY MAIL ME ON piyushkhandelwal029@gmail.com . */

THANKU.

SHARE

Admin

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

3 comments:

Unknown said...

hello i need your help in adding image in text file and read it can you pz help me to solve it as soon as possible

Anonymous said...

Real estate is one of the most profitable investments. If you want to know how to invest in real estate while living in Pakistan, then click on the link.

Jhon said...

Thank you for sharing such an amazing blog, read on informative blogs international