Professional Documents
Culture Documents
CS1 Project
CS1 Project
CS1 Project
DEPARTMENT OF CSIT
AN REPORT
ON
MINOR PROJECT
“HOTEL MANEGMENT SYSTEM”
20606005
INDEX
INTRODUCTION
REQUIREMENT ANALYSIS
EXISTING SYSTEM
FUNCTIONAL ANALYSIS
DESIGN CONCEPT
REPORT MODULE
SOFTWARE REQUIREMENT
SPECIFICATION
REQUIREMENT ANALYSIS:-
Addition of the record of the customer who comes into the hotel,
deletion of the record when customer leaves the hotel, printing and
calculation of the bill, record of facilities available in the hotel, allotment
of the room etc. In this project we have also analyzed that the product or
software should not be very costly but its quality and interface must be
attractive. If any wrong operation is being performed then the software
must invoke the operator accordingly.
EXISTING SYSTEM:-
Hotel Management involves maintaining various operations of the hotel
like Booking or reservation of rooms, cancellation of the rooms, cash
billing etc. The existing system is a manual one and there is lot of issues
like erroneous data, slow process, lack of security etc. Finding out the
final payment amount completely relies on the hotel manager and if he is
absent, it take a long time to find out the details during check out is
prone to errors.
FUNCTIONAL ANALYSIS:-
INPUT – Collecting the information of the person who is come to
room check in.
Secure data
Faster process
Error Free
Batter management
Save a lot of manpower
Can easily make the daily reports
Elimination of Paper Work.
High reliability and security
Fast and economical
DESIGN CONCEPT:-
The algorithm is developed as flow chart and the data flow diagrams,
to describe the step-wise procedure of the application. The basic
requirement, which are got from the customer, should all be covered
in this algorithm developed. Most components describe in the system
architecture section will require a more detailed discussion. Other
lower-level components may need to be described as well, the kind of
component, such as a subsystem like delete, insert, module, like
student detail, class like library, package, function, file etc. The
specific purpose and semantic meaning of the component describe
this. This may need to refer back to the requirement specification.
REPORT MODULE:-
1. Check In/ Payment Receipt
2. Show Guest List
3. Check Out
4. Exit
Module Description-
The Python interpreter and the extensive standard library are freely
available in source or binary form for all major platforms from the
Python Web site, https://www.python.org/, and may be freely
distributed. The same site also contains distributions of and pointers to
many free third party Python modules, programs and tools, and
additional documentation.
The Python interpreter is easily extended with new functions and data
types implemented in C or C++ (or other languages callable from C).
Python is also suitable as an extension language for customizable
applications.
This tutorial introduces the reader informally to the basic concepts and
features of the Python language and system. It helps to have a Python
interpreter handy for hands-on experience, but all examples are self-
contained, so the tutorial can be read off-line as well.
Hardware Requirement -
Software Requirement -
Software Used -
The data flow diagram (DFD) is one of the most important tools used by
system analysts. Data flow diagrams are made up of a number symbols,
which represent system components. Most data flow modeling methods
use four kinds of symbols. These symbols are used to represent four
kinds of system components such as Processes, data stores, data flows
and external entities.
Circles in DFD represent processes. Data Flow is represented by a
thin line in the DFD and each data store has a unique name and rectangle
represents external entities. Unlike detailed flow chart, Data Flow
Diagrams do not supply detailed description of the modules but
graphically describes a system’s data and how the data interact with the
system.
An arrow identifies the data flow in motion. It is a pipeline through
which information is flown like the rectangle in the flowchart. A circle
stands for process that converts data into information. An open-ended
box represents a data store, data at rest or a temporary repository of data.
A square defines a source or destination of system data.
Hotel Management
User Data entry System
Receipt
Commands
Alert Message
Data entry
Data Processing
Receipt
Check in
Receipt
Show Guest List
User
Check Out
Exit
Name
Mobile
no. Validate
User data
No. of
Days
Invalid data
Type of
Room
Alert
Payment
Name
Data
Address
Mobile
no. Validate All valid Data
User data
No. of
Days
Type of
Room
Payment
Payment receipt
Receipt
DFD for Check-out –
Alert
Since the bank statement contains all charges, along with the
corresponding dates and payees, it can help account holders
identify any fraudulent activity.
Credit Verification
Bank statements can also be useful to analyze the
creditworthiness of the account holder. Most banks and financial
institutions require verification of bank statements for the last 2-5
years before giving loans to individual clients.
Bank Reconciliation
Budgeting
Financial Statement Notes
Bank Account Overdraft
The source code for this project is short – just over 300 lines.
The coding has been presented in a very understandable manner.
The source code needs to be compiled in Dev-C++ IDE Version
5.11.
You can use this application to keep the records such as Account
number, First Name, Last Name, Balance etc. of your regular
costumer. Moreover, if you have a new customer, you can add
and edit the account at any time.
Here are some awesome facts about C++ that may interest you:
ADVANTAGES OF C++
C++ is an object-oriented programming language. It may be
a collection of commands, which tell the pc to try to do
“something.” This collection of commands is typically
called C++ ASCII text files.
C++ could also be a problem-oriented language that’s much
easier to use than the other low-level languages like binary
coding. It takes much more space than low-level languages
but it’s much easier to understand and learn.
C++ program has many advantages when it involves
programming, All C++ program stand-alone files must use
the foremost function to allow the program to start out up
and motivate its functions.
C++ program can support unions and structures that are a
mix of stand-alone and put-together files, It uses the
standard C++ application mentioned as “.cpp”, C++ uses
the reserved library word mentioned as “goto” that’s the
same as Java’s continue, or break commands.
The global data and global functions are used within C++
that aren’t utilized in many other high-level languages within
the pc sciences and it is an advantage to the programming
languages.
As C++ doesn’t use the objects, it’s difficult to make the
programs that have inheritance data and thus the reformed
the programs to contribute to the other data and therefore
the programs, it is possible to undertake to the present,
however, but is difficult, These inheritance data and
programs are mentioned because of the inheritance trees.
C++ doesn’t support class methods that are faithful away,
but class methods are basically functions, and sometimes
they’re referred to as functions.
C++ program uses multi-paradigm programming, Paradigm
means the planning of programming, paradigm concerned
about the logic, the structure, and procedure of program,
C++ program is multi-paradigm means it follows three
paradigms Generic, Imperative, Object-Oriented.
C++ program is useful for low-level programming language
and really efficient for general purposes, It offers
performance and memory efficiently, It offers high-level
abstraction, within the language of the matter domain
C++ may be a system programming and features a
relatively clear and mature standard,
C++ program supports inline function, C++ supports
exception handling, its pointer and references, C++
uses cin and cout.
DISADVANTAGES OF C++
One major problem in C++ is when the info points to an
equivalent thing from two different starting points, this
causes a serious problem, the C++ program will still have
involved problems within the coding.
Java’s uni-code to the ASCII rules is 16-bit, while C++
program is 8-bit only, So, C++ may be a less impressive
programming language but saves the memory.
C++ program is complex during a very large high-level
program, C++ is employed for platform-specific application
commonly, For the actual OS or platform, the library set is
typically chosen.
C++ program can’t support garbage pickup, It doesn’t
support Dynamic Memory Allocation, it’s not secure because
it’s a pointer, friend function, and global variable and it’s no
support for threads built-in.
C++ programs are often heavy if it’s not careful, C++
program allows classes and thus the functions with an
equivalent name and overloaded functions thus the symbol
mangling system must be used, It can easily be wrapped in
C functions though.
C++ program has no notion of being fast and it’s not used
for platform-dependent apps any longer than C or anything
is. Actually, given the character of the toolchain, it’s
probably less dependent than others. Complex in a very
large high-level program.
It is used for platform-specific applications commonly.
For a specific OS or platform, the library set is typically
chosen that locks.
OBJECTIVES:
File handling has been effectively used for each feature of this
project. Here, I am going to describe these features in brief.
#include<conio.h>
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<windows.h>
The word fstream: this header file mainly describes the file
stream. This header file is used to handle the data being
read from a file as input or data being written into the file as
output.
#include<conio.h>
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<windows.h>
using std::cout;
using std::cin;
using std::endl;
using std::fstream;
using std::ofstream;
using std::ifstream;
using std::ios;
class account_query
private:
char account_number[20];
char firstName[10];
char lastName[10];
float total_Balance;
public:
void read_data();
void show_data();
void write_rec();
void read_rec();
void search_rec();
void edit_rec();
void delete_rec();
};
void account_query::read_data()
system("cls");
system("color b");
cout<<"=================================\n"<<endl;
cout<<"=================================\n\n"<<endl;
cin>>account_number;
cin>>firstName;
cin>>lastName;
cin>>total_Balance;
Sleep(800);
Sleep(800);
cout<<"\t\t\tPress Any Key\n\n";
getch();
system("Cls");
cout<<endl;
void account_query::show_data()
system("Color c");
cout<<"\n-------------------------------\n\n"<<endl;
Sleep(400);
Sleep(400);
Sleep(400);
Sleep(400);
Sleep(400);
cout<<"\n-------------------------------\n\n"<<endl;
Sleep(600);
getch();
cout<<"\n\n";
void account_query::write_rec()
{
ofstream outfile;
outfile.open("record.bank", ios::binary|ios::app);
read_data();
outfile.close();
void account_query::read_rec()
ifstream infile;
infile.open("record.bank", ios::binary);
if(!infile)
return;
system("cls");
cout<<"===============================\n\n****Data from
file****\n\n===============================\n\n"<<endl;
while(!infile.eof())
if(infile.read(reinterpret_cast<char*>(this), sizeof(*this))>0)
show_data();
infile.close();
}
void account_query::search_rec()
int n;
ifstream infile;
infile.open("record.bank", ios::binary);
system("color f");
if(!infile)
return;
infile.seekg(0,ios::end);
Sleep(500);
Sleep(500);
cin>>n;
infile.seekg((n-1)*sizeof(*this));
infile.read(reinterpret_cast<char*>(this), sizeof(*this));
show_data();
void account_query::edit_rec()
int n;
fstream iofile;
iofile.open("record.bank", ios::in|ios::binary);
system("color f");
if(!iofile)
return;
iofile.seekg(0, ios::end);
Sleep(500);
Sleep(500);
cin>>n;
iofile.seekg((n-1)*sizeof(*this));
iofile.read(reinterpret_cast<char*>(this), sizeof(*this));
show_data();
iofile.close();
iofile.open("record.bank", ios::out|ios::in|ios::binary);
iofile.seekp((n-1)*sizeof(*this));
read_data();
iofile.write(reinterpret_cast<char*>(this), sizeof(*this));
void account_query::delete_rec()
{
int n;
ifstream infile;
infile.open("record.bank", ios::binary);
system("color f");
if(!infile)
return;
infile.seekg(0,ios::end);
Sleep(500);
Sleep(500);
cin>>n;
fstream tmpfile;
tmpfile.open("tmpfile.bank", ios::out|ios::binary);
infile.seekg(0);
infile.read(reinterpret_cast<char*>(this),sizeof(*this));
if(i==(n-1))
continue;
tmpfile.write(reinterpret_cast<char*>(this), sizeof(*this));
}
infile.close();
tmpfile.close();
remove("record.bank");
rename("tmpfile.bank", "record.bank");
Sleep(800);
getch();
int main()
account_query A;
int choice;
while(true)
system("cls");
system("color a");
cout<<"=================================\n"<<endl;
cout<<"=================================\n\n"<<endl;
Sleep(400);
Sleep(400);
Sleep(400);
Sleep(400);
Sleep(400);
cout<<"\n\t6: Quit";
Sleep(400);
cin>>choice;
switch(choice)
case 1:
A.write_rec();
break;
case 2:
A.read_rec();
break;
case 3:
A.search_rec();
break;
case 4:
A.edit_rec();
break;
case 5:
A.delete_rec();
break;
case 6:
system("cls");
system("color d");
cout<<"=================================\n"<<endl;
cout<<"=================================\n\n"<<endl;
cout<<"\n\nTHANK ";
Sleep(400);
cout<<"YOU ";
Sleep(400);
cout<<"FOR ";
Sleep(400);
cout<<"USING ";
Sleep(400);
cout<<"THIS ";
Sleep(400);
cout<<"SOFTWARE\n\n";
Sleep(600);
cout<<"\n================================="<<endl;
Sleep(400);
cout<<"\nDEVELOPER DETAILS:\n";
Sleep(400);
cout<<"\n=================================\n"<<endl;
Sleep(500);
cout<<"AASTHA ";
Sleep(500);
cout<<"BARETH"<<endl;
Sleep(500);
Sleep(500);
cout<<"SARATHE SIR"<<endl;
cout<<"\n\t\tSubmitted to : ";
Sleep(500);
Sleep(500);
getch();
exit(0);
break;
default:
Sleep(400);
getch();
main();
}
}
system("pause");
return 0;
}
MAIN SCREENSHOT
0 Errors, 0 Warning
Operating System:
Windows XP
Windows 7
Windows 8
Or any other version of windows
Hardware Used:
CPU configuration
BOOKS REFERRED
WEBSITES REFERRED
1. www.google.com
2. www.slideshare.net
3. www.stackoverflow.com
4. https://www.geeksforgeeks.org/c-plus-plus/
5. www.youtube.com
6. https://www.javatpoint.com/cpp-program