Professional Documents
Culture Documents
INDIA.
FINAL REPORT
ON
REAL ESTATE ADVISOR
MODULE EXPLANATION: -
1. Add New Record: This module allows the user to add a new record of
property for sale or purchase. The user will input all the details of the property,
including its location, type (flat, land, commercial property), number of
bedrooms/bathrooms, area, and price.
2. Display the available property: This module will display all the available
properties based on the user's search criteria. The user can filter the results by
location, type, number of bedrooms/bathrooms, area, and price.
3. Search: The search module allows the user to search for properties based on
their specific requirements. The user can input their desired location, type of
property, number of bedrooms/bathrooms, area, and price range, and the
system will return all the matching properties.
4. Buy/Sell: This module allows the user to buy or sell a property. The user can
choose to list their property for sale or browse available properties for
purchase. The module will facilitate the transaction by providing the necessary
information and documentation for both parties.
5. Edit/Delete Record: This module allows the user to edit or delete their
existing property records. If the user needs to make any changes to their
property listing or remove it from the system, they can use this module to do
so.
SOURCE CODE : -
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_RECORDS 50
struct property
{
char address[50];
char type[50];
int price;
};
printf("Record added.\n");
}
// Perform transaction
if (strcmp(transaction_type, "buy") == 0)
{
if (records[index].price == 0)
{
printf("This property is not for sale.\n");
}
else
{
printf("Property bought for $%d.\n",
records[index].price);
records[index].price = 0;
}
}
else if (strcmp(transaction_type, "sell") == 0)
{
if (records[index].price > 0)
{
printf("This property is already for sale.\n");
}
else
{
printf("Enter new property price: ");
scanf("%d", &records[index].price);
printf("Property put up for sale for $%d.\n",
records[index].price);
}
}
else
{
printf("Invalid transaction type.\n");
}
}
// Perform action
if (strcmp(action, "edit") == 0)
{
// Get new property details from user
printf("Enter new property address (leave blank to keep
current value \"%s\"): ", records[index].address);
char new_address[50];
scanf(" %[^\n]", new_address);
if (strcmp(new_address, "") != 0)
{
strcpy(records[index].address, new_address);
}
int main()
{
struct property records[MAX_RECORDS];
int num_records = 0; // Display menu
while (1)
{
printf("\nReal Estate Management System\n");
printf("1. Add new property record\n");
printf("2. Display available properties\n");
printf("3. Search property\n");
printf("4. Buy/sell property\n");
printf("5. Edit/delete property record\n");
printf("6. Exit\n");
return 0;
}
OUPUT : -