OOPsyfinal 1
OOPsyfinal 1
Kolhapur.
CERTIFICATE
Has satisfactorily completed the micro- project work in the course OOP(Object Oriented
Programming with C++)Course code:-22316 entitled Hotel Management System This work is
being submitted for the award of Diploma in Computer Engineering as a partial fulfillment of the
requirement of the Maharashtra State Board of Technical Education, Mumbai during academic
year2022-23as prescribed in the curriculum.
Seal of Institute
Teacher Evaluation Sheet
Name of Student: Mr. Niranjan B. Mane Enrollment No: 2105400030
Name of Program: Computer Engineering Semester: 3rd
Course Title: Object Oriented Programming using C++ Code: 22316
Title of the Micro-Project: Hotel Management System.
Course Outcomes Achieved:
1. Develop the C++ programs to solve problems using procedure Oriented Approach.
2. Develop the C++ programs using Class and Object.
3. Implement inheritance in C++ Program.
Assessment of Micro-Project
Sr. Characteristic to be assessed Poor Average Good Excellent Sub Total
No.
1 Relevance to the course
2 Literature Survey/information collection
3. Proposed Methodology
This article contains using language C++ hotel management project. This system offers a number
of choices, reserving a room, stored and showing customer information. Classes, function and
object are used in the project's development. the section involves data gathering area of study the
data quality controls for study. It also illustrate how the data was analyzed and presented.
Use of turbo C++ and object oriented programming with C++ is being used in this project. The
project has been developed and is taken under several points to be perfect in its own way the
system is build for basic and common operation that can be performed automatically rather than
manually keeping the record, also data handling and storage is done successfully the following
system is in 100% working phase and can be used anywhere if needed.
.
Algorithm of Program
1. Start
2. Create a login page using string functions.
3. Create Multiple Classes containing Data members and functions which will store
the information of different rooms.
4. Create Multiple Classes which will have the data about rooms and will display the
data of specific rooms when user will enter the input.
5. Create Sub classes having Whole details of rooms like AC-rooms, NON-AC:
rooms, etc.
6. Give the user modifications he wants to make in his rooms like book, empty etc.
7. Now When a Customer is done or selecting his rooms or wants to book his room
like AC or NON-AC.
8. Ask The User About his Details and bank details. Also ask him about Mode of
payment
9. End
4. Action Plan
Name of
Sr. no Details of activity Plan-Start Plan Finish Responsible Team
date date Members
1.0 Rationale
In early day the Hotel system as well as Hotel where not so much advanced as till today’s. But
now a day’s hotels have become the major business and most important part of people as the
importance of it increases the management also needs to become more and more advanced
hence this project helps a lot in management of system keeping the room records , displaying
them and reducing the space and complexity in work of Management.
2.0 Aims
1. To Information and providing services to customers.
2. To Understand The Importance Of C++.
3. To reduce space consumed and less time is required.
#include<iostream.h>#in
clude<conio.h>
#defineMAXSIZE10
Class First
{public:
intn,yc;
char
Types[60];voidsta
rt()
{
cout<<"AvailableRoomsIn1stFloor"<<endl;cout<<"1s
tFloorOnlyCouple"<<endl;cout<<" 1st Floor Total
Rooms= 10"<<endl;cout<<"All
RoomsIn1stFloor"<<endl;
cout<<"\tRoomNO\t\tType\t\t\tRoomNo
\tType"<<endl;co
ut<<"\t 1.\t\tNon-AC\t\t 6.\t\tAC"<<endl;
cout<<"\t2.\t\tAC \t\t7.\t\tNon-
AC"<<endl;cout<<" \t 3.\t\tNon-AC\t\t
8.\t\tAC"<<endl;cout<<"\t4.\t\tAC \t\t9.\t\tNon-
AC"<<endl;cout<<" \t 5.\t\tNon-AC\t\t
10.\t\tAC"<<endl;cout<<endl;
cout<<"Available'sRoom:"<<endl;
cout<<"\tRoomNO\t\tType\t\t\tRoomNo
\tType"<<endl;co
ut<<"\t 1.\t\tNon-AC\t\t 6.\t\tAC"<<endl;
cout<<"\t2.\t\tAC \t\t
8.\t\tAC"<<endl;cout<<"\t3.\t\tNon-AC\t\t9.\t\tNon-
AC"<<endl;cout<<"\t 5.\t\tNon-AC"<<endl;
cout<<endl;
cout<<"enterroomn:"<<endl;cin>>
n;
if(n=1,2,3,5,6,8,9)
{cout<<"Available"<<endl;
}
else
{cout<<"NotAvailable"<<endl;
}if(n%2==0
)
{
cout<<"AC
Room"<<endl;cout<<"\nRent(Perday)="<<70
0<<endl;
}
else
{cout<<n<<"NON-AC"<<endl;
cout<<"\nRent(Perday)="<<500<<endl;
}
}
};
classSecond:publicFirst
{public:
intno;
charTypes[60];vo
id mid()
{cout<<endl;
cout<<"AvailableRoomsIn2ndFloor"<<endl;cout<<"
2nd Floor Only
Familes"<<endl;cout<<"2ndFloorTotalRooms=10"<<e
ndl;
cout<<"\tRoomNO\t\tType\t\t\tRoomNo
\tType"<<endl;co
ut<<"\t 1.\t\tNon-AC\t\t 6.\t\tAC"<<endl;
cout<<"\t2.\t\tAC \t\t7.\t\tNon-
AC"<<endl;cout<<" \t 3.\t\tNon-AC\t\t
8.\t\tAC"<<endl;cout<<"\t4.\t\tAC \t\t9.\t\tNon-
AC"<<endl;cout<<" \t 5.\t\tNon-AC\t\t
10.\t\tAC"<<endl;cout<<endl;
cout<<"Available'sRoom:"<<endl;
cout<<"\tRoomNO\t\tType\t\t\tRoomNo
\tType"<<endl;co
ut<<"\t 1.\t\tNon-AC\t\t 6.\t\tAC"<<endl;
cout<<" \t 3.\t\tNon-AC\t\t 8.\t\tAC"<<endl;cout<<endl;
cout<<"enterroomno:"<<endl;cin>>n
o;
if(n=1,3,6,8)
{cout<<"Available"<<endl;
}
else
{cout<<"NotAvailable"<<endl;
}
if(no%2==0)
{
cout<<"AC
Room"<<endl;cout<<"\nRent(Perday)="<<1000
<<endl;
}
else
{cout<<"NON-AC"<<endl;
cout<<"\nRent(Perday)="<<700<<endl;
}
}
};
classThird:publicSecond
{public:
inti,Cust_member;
longRoom_no,Phone_no,Account_no;charCust_n
ame[60];
voidlast()
{cout<<endl;
cout<<"\t\tEnterTheDetails/BillOfCustomer"<<endl;cout<<"Roo
m No:"<<endl;
cin>>Room_no;if(
no%2==0)
{
cout<<"AC
Room"<<endl;cout<<"\nRent(Perday)="<<1000
<<endl;
}
else
{cout<<"NON-AC"<<endl;
cout<<"\nRent(Perday)="<<700<<endl;
}
cout<<endl;
cout<<"CustName:"<<endl;cin>
>Cust_name;
cout<<"CustMember:"<<endl;cin>
>Cust_member;cout<<"Phone
No:"<<endl;cin>>Phone_no;cout<<
"Account
No:"<<endl;cin>>Account_no;
if(i>2==0)
{cout<<"WelcomeToCoupleFloor"<<endl;cout<<endl;
}
else
{cout<<"WelcomeToFamilyFloor"<<endl;
}
}
voiddisplay()
{
clrscr();cout<
<endl;
cout<<"\t\t\t**Details/BillOfCustomer**"<<endl;
cout<<"RoomNo="<<Room_no<<"\nCustName="<<Cust_name<<"\nNoofPeople="<<Cust_me
mber<<"\nPhoneNO="<<Phone_no<<"\nAccountNo="<<Account_no<<endl;
}
};
voidmain()
{Third
c;intch;clrs
cr();
cout<<"\t\t\t********C-11********"
<<endl;cout<<"\t\t\t****Hotel AANA'S****"
<<endl;cout<<"\t\t\t******MAIN MENU******"
<<endl;cout<<"1.AvailableRoomsInCoupleFloor"<<endl;cout<
<"2.Available Rooms In Family Floor
"<<endl;cout<<"3.EnterCustomerInfo"<<endl;
cout<<"4.CheckYourData"<<endl;cout<
<"5.Exit"<<endl;
do
{
cout<<"Enteryourchoice:"<<endl;cin>>
ch;
clrscr();swit
ch(ch)
{case1:c.start();
break;case2
:c.mid();
break;case3:
c.last();
break;
case4:c.display();bre
ak;
case5:break;
default:cout<<"youenteredwrongChoice"<<endl;
}
}
while(ch!=5);
getch();
}
6.0 Actual Resource Used
Sr. no Name of Specification Qty Remarks
Resource/material
1 Laptop HP 64 bits 1 -
2 Turbo C++ Version 3.2 1 -
3 Book Object Oriented 1 -
Programming With
C++