This document contains code for a hotel management system with classes for food and customer details. The food class contains functions for displaying the food menu, adding items to the menu, generating food bills. The customer class contains functions for customer billing, viewing customer details, adding/modifying/deleting customers and their information from files.
It isn't mine but i sure hope it helps others.It's a Mini Project on a Food Automaton Restaurant type.you know Enter food type stuff. It's in C++ ,so it's an easy one .You can understand it on your own
It isn't mine but i sure hope it helps others.It's a Mini Project on a Food Automaton Restaurant type.you know Enter food type stuff. It's in C++ ,so it's an easy one .You can understand it on your own
In this talk, I’m introducing Pegomock, a mocking framework for Go, that I have written over the last 2 years. By quickly going through the idea of Dependency Injection, I'm explaining why mocks are useful in general. Afterwards, I'm diving a bit deeper into how to use Pegomock and why I think it is better than its alternatives.
Principles of Management in Hotel Industry (Marriott Hotels & Resorts)Nishita Baliarsingh
This project studies the applications of the 14 Principles of Management at described by Henri Fayol in his book "Classic General and Industrial Management" for Hotel Industry, Marriott Hotels.
In this talk, I’m introducing Pegomock, a mocking framework for Go, that I have written over the last 2 years. By quickly going through the idea of Dependency Injection, I'm explaining why mocks are useful in general. Afterwards, I'm diving a bit deeper into how to use Pegomock and why I think it is better than its alternatives.
Principles of Management in Hotel Industry (Marriott Hotels & Resorts)Nishita Baliarsingh
This project studies the applications of the 14 Principles of Management at described by Henri Fayol in his book "Classic General and Industrial Management" for Hotel Industry, Marriott Hotels.
This study aims to develop and design an on
-
line hotel reservation and management system for the College of
International Tourism and Hospitality Management of the Lyceum of the Philippines University, Batangas Campus. It
presents user
-
friendly features th
at will familiarize CITHM students on the online hotel reservation system, evaluate it and
highlight the benefits it can provide to the college and staff. In addition, it will purvey supplement material in their fron
t desk
operation course. The researchers
used the System Development Life Cycle and Microsoft Web Developer 2008 as the
programming language. The developed software served as a tool for the students of CITHM to familiarize them on how to
operate an online hotel reservation system. The developed
software was an effective aid for the instructors in teaching the
basic operations of hotel reservation system to their students. It also provided online security to protect privacy and
financial information of clients.
its a project report for theatre management project done in c++ language without graphics.h
It has welcome screen followed by a login session.
There are two login modes- User and admin,
A user can view,book and edit his tickets for a show
An admin has privileges to add/edit/remove the Show details
This project uses text files which will be created by the code itself .
This runs fine on the old turbo c++ (blue screen) ,so should be able to run on any compiler.
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM),CBSE Class 12 computer project,Class XII computer project, A project work on Hotel management system in C++,Class 12 C++ Projects, Projects in C++ for Class XII CBSE, C++ Class XII project
http://www.hotelsystem.us
The E-Soft Hotel Management System (HMS) helps to manage & operate small to medium sized hotels. E-Soft Hotel Management System is a user-friendly, uncluttered and compact Hotel Management Software that automates the operation and management of a hotel. Our Hotel Management Software seamlessly integrates Reservations, Front Desk, Housekeeping functions on a single platform. An extensive variety of management reports can be generated from the E-Soft Hotel Management System.
Mini project in c++,Institute Management has become common now a days but i hope it helps. Accesscode is "nopassword".
Feel free to make chanes according to your need.This has sound involved as well , make sure to adjust it as well.
files/Heap.h
#ifndef HEAP_H
#define HEAP_H
#include <vector>
#include <stdexcept> // std::out_of_range
#include <math.h> // pow()
using namespace std;
template<typename T>
class Heap
{
private:
vector<T> _items; // Main vector of elements for heap storage
/**
* Used to take unsorted data and heapify it
*/
void buildHeap()
{
for (int i = _items.size() / 2; i >= 0; i--)
{
percolateDown(i);
}
}
/*********************************************************************/
/********************* Microassignment zone *************************/
/**
* Percolates the item specified at by index down
* into its proper location within a heap.
* Used for dequeue operations and array to heap conversions
* MA TODO: Implement percolateDown!
*/
void percolateDown(int index)
{
}
/**
* Percolate up from a given index to fix heap property
* Used in inserting new nodes into the heap
* MA TODO: Implement percolateUp
*/
void percolateUp( int current_position )
{
}
/************************** Microassigment zone DONE *********************/
public:
/**
* Default empty constructor
*/
Heap()
{
}
/**
* Constructor with a vector of elements
*/
Heap(const vector<T> &unsorted)
{
for (int i = 0; i < unsorted.size(); i++)
{
_items.push_back(unsorted[i]);
}
buildHeap();
}
/**
* Adds a new item to the heap
*/
void insert(T item)
{
int current_position = size(); // Get index location
_items.push_back(item); // Add data to end
percolateUp( current_position ); // Adjust up, as needed
}
/**
* Returns the top-most item in our heap without
* actually removing the item from the heap
*/
T& getFirst()
{
if( size() > 0 )
return _items[0];
else
throw std::out_of_range("No elements in Heap.");
}
/**
* Removes minimum value from heap and returns it to the caller
*/
T deleteMin()
{
int last_index = size() - 1; // Calc last item index
int root_index = 0; // Root index (for readability)
T min_item = _items[root_index]; // Keep item to return
_items[root_index] = _items[last_index]; // Move last item to root
_items.erase(_items.end() - 1); // Erase last element entry
percolateDown(0); // Fix heap property
return min_item;
}
/**
* Returns true if heap is empty, else false
*/
bool isEmpty() const
{
return _items.size() == 0;
}
/**
* Returns current quantity of elements in heap (N)
*/
int size() const
{
return _items.size();
}
/**
* Return heap data in order from the _items vector
*/
string to_s() const
{
string ret = "";
for(int i = 0; i < _items.size(); i++)
{
ret += to_string(_items[i]) + " ";
}
return ret;
}
/**
...
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
4. }//END OF WHILE
p1.close();
settextstyle(15,0,1);
outtextxy(30,325,"DO YOU WANT TO ADD AN ITEM
- (Y/N)");
gotoxy(60,20);
cin>>ap;
if(ap=='y'||ap=='Y')
{
app_fmenu();
//CALLING APPEND FUNCTION
}
else
{
if(ap=='n'||ap=='N')
{
outtextxy(30,360,"DO YOU WANT TO
DELETE ALL (Y/N)");
char ch;
gotoxy(60,23);
cin>>ch;
if(ch=='y'||ch=='Y')
{
del_all();
//CALLING DELETE FUNCTION
}
}
5. }
}
//***************************************
// FUNCTION TO APPEND IN FOOD MENU
//***************************************
void food::app_fmenu(void)
{
p1.open("food.txt",ios::app|ios::binary);
outtextxy(30,360,"ENTER ITEM NAME U WANTTO
ADD");
gotoxy(60,23);
gets(f.name);
outtextxy(30,380,"ENTER THE PRICE");
gotoxy(60,24);
cin>>f.price;
p1.write((char*)&f,sizeof(f));
p1.close();
getch();
}
//*****************************
// FUNCTION FOR FOOD BILL
//*****************************
void food::food_bill()
6. {
double bill=-1;
char c_name[20],f_name[20];
int dt;
cleardevice();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(17,40,605,420);
rectangle(17,40,605,420);
setfillstyle(1,7);
bar(24,47,598,413);
rectangle(24,47,598,413);
setcolor(4);
settextstyle(7,0,1);
outtextxy(30,70,"ENTER CUSTOMER NAME ");
gotoxy(50,6);
cin>>c_name;
outtextxy(30,120,"ENTER ITEM NAME TAKEN");
gotoxy(50,9);
cin>>f_name;
outtextxy(30,170,"ENTER THE QUANTITY");
gotoxy(50,12);
cin>>dt;
p1.close();
p1.open("food.txt",ios::in|ios::binary);
while(p1.read((char*)&f,sizeof(f)))
7. {
if(strcmp(f.name,f_name)==0)
{
bill=dt*f.price;
}
}//END OF WHILE
if(bill==-1)
{
setcolor(1);
for(int i=0;i<20;i++)
{
setcolor(1);
outtextxy(30,220,"ITEM IS NOT PRESENT");
delay(100);
setcolor(WHITE);
outtextxy(30,220,"ITEM IS NOT PRESENT");
delay(100);
// delay(2500);
}
}
else
{
char t[5],b[5];
setcolor(1);
itoa(dt,t,10);
itoa(bill,b,10);
8. outtextxy(30,250,"NAME FOOD.NAME
QUANTITY BILL ");
setcolor(1);
settextstyle(4,0,1);
outtextxy(30,280,c_name);
outtextxy(140,280,f_name);
outtextxy(320,280,t);
outtextxy(445,280,b);
getch();
}
}
//************************************
// FUNCTION TO DELETE FOOD MENU
//******************************
void food::del_all()
{
remove("food.txt");
p1.open("food.txt",ios::out);
p1.close();
c=0;
}
//END OF CLASS FOOD
//***************************************
// THIS CLASS CONTAINS INFORMATION
9. // RELATED TO CUSTOMER
//***************************************
class customer
{
private:
int q,w;
fstream f1;
struct cust
{
int c_no;
char c_name[20];
char c_add[80];
int a_date;
int a_month;
int a_year;
int d_date;
int d_month;
int d_year;
int room_no;
char room_type[25];
}p;
public:
food j;
customer()
10. {
p.c_no=0;
p.d_date=0;
p.d_month=0;
}
//**********************************
// FUNCTION FOR CUSTOMER BILL
//*****************************
void cust_bill()
{
int cho;
do
{
cleardevice();
f1.close();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(10,70,600,450);
rectangle(10,70,600,450);
setfillstyle(1,7);
bar(17,77,593,443);
rectangle(17,77,593,443);
setcolor(5);
setfillstyle(1,2);
11. settextstyle(7,0,1);
setcolor(9);
setfillstyle(1,2);
bar(210,140,410,238);
rectangle(210,140,410,158);
rectangle(210,140,410,174);
rectangle(210,140,410,190);
rectangle(210,140,410,206);
rectangle(210,140,410,222);
rectangle(210,140,410,238);
setcolor(4);
settextstyle(1,0,4);
outtextxy(180,20,"HOTEL BILL");
line(180,60,383,60);
setcolor(4);
settextstyle(1,0,1);
outtextxy(210,137," 1. ROOM BILL");
outtextxy(210,170," 2. FOOD BILL");
outtextxy(210,200," 3. MAIN MENU");
outtextxy(63,318,"ENTER CHOICE FOR WHICH
YOU WANT THE BILL");
gotoxy(67,21);
cin>>cho;
choose(cho);
}while(cho!=3);//END OF WHILE
}
12. void choose(int a)
{
switch(a)
{
case 1:
{
room_bill();
break;
}
case 2:
{
j.food_bill();
break;
}
case 3:
break;
}
}
//****************************
// FUNCTION FOR ROOM BILL
//************************
void room_bill()
{
13. double bill;
int days,no,dt,mth;
cleardevice();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(17,40,605,420);
rectangle(17,40,605,420);
setfillstyle(1,7);
bar(24,47,598,413);
rectangle(24,47,598,413);
setcolor(4);
settextstyle(7,0,1);
outtextxy(30,70,"ENTER CUSTOMER NO
DEPARTING");
gotoxy(50,6);
cin>>no;
outtextxy(30,120,"DATE OF DEPARTURE");
gotoxy(50,9);
cin>>dt;
outtextxy(30,170,"MONTH OF DEPARTURE");
gotoxy(50,12);
cin>>mth;
if(p.a_month>mth)
{bill=0;
}
f1.close();
14. f1.open("cust.txt",ios::in|ios::binary);
int c=0;
while(f1.read((char*)&p,sizeof(p)))
{
if(p.c_no==no)
{ c++;
if(p.a_month==mth)
{
days=dt-p.a_date;
}
else
{
days=(mth-p.a_month)*30+(dt-p.
a_date);
}
if(p.room_no<11)
{
char
d[5],m[5],h[5],mt[5],dy[5],bl[5];
bill=days*250;
setcolor(4);
outtextxy(30,270," NAME ARRIVAL
DEPARTURE DAYS IN BILL ");
setcolor(1);
settextstyle(1,0,1);
outtextxy(40,300,p.c_name);
itoa(p.a_date,d,10);
15. outtextxy(150,300,d);
outtextxy(160,300,"/");
itoa(p.a_month,m,10);
outtextxy(170,300,m);
itoa(dt,h,10);
outtextxy(270,300,h);
outtextxy(280,300,"/");
itoa(mth,mt,10);
outtextxy(290,300,mt);
itoa(days,dy,10);
outtextxy(405,300,dy);
itoa(bill,bl,10);
outtextxy(515,300,bl);
}
else
{
char
d[5],m[5],h[5],mt[5],dy[5],bl[5];
bill=days*150;
setcolor(4);
outtextxy(30,270," NAME ARRIVAL
DEPARTURE DAYS IN BILL ");
setcolor(1);
settextstyle(1,0,1);
outtextxy(40,300,p.c_name);
itoa(p.a_date,d,10);
outtextxy(150,300,d);
17. f2.open("dup.txt",ios::app|
ios::binary);
p.c_no=count;
f2.write((char*)&p,sizeof(p));
count++;
f2.close();
}
}//END OF WHILE
remove("cust.txt");
rename("dup.txt","cust.txt");
f1.close();
}
}//END OF WHILE
if(c==0)
{ for(int i=0;i<10;i++)
{
settextstyle(1,0,3);
setcolor(4);
outtextxy(150,300,"CUSTOMER IS NOT
PRESENT");
delay(100); setcolor(WHITE);
outtextxy(150,300,"CUSTOMER IS NOT
PRESENT");
delay(100);
}
}
18. getch();
}
//**************************************
// FUNCTION TO DISPLAY CUSTOMER DETAIL
//**************************************
void cust_detail()
{
int c;
do
{
cleardevice();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(50,80,600,470);
rectangle(50,80,600,470);
setfillstyle(1,7);
bar(57,87,593,463);
rectangle(57,87,593,463);
setcolor(9);
setfillstyle(1,2);
bar(210,140,410,254);
rectangle(210,140,410,158);
rectangle(210,140,410,174);
24. outtextxy(440,50+20*c,pr);
itoa(p.a_date,d,10);
outtextxy(550,50+20*c,d);
outtextxy(560,50+20*c,"/");
itoa(p.a_month,m,10);
outtextxy(570,50+20*c,m);
}//END OF WHILE
getch();
f1.close();
}
//************************************************
// FUNCTION FOR MODIFYING CUSTOMER DETAIL
//************************************************
void cust_mod()
{
cleardevice();
f1.close();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(10,10,600,470);
rectangle(10,10,600,470);
setfillstyle(1,7);
bar(17,17,593,463);
rectangle(17,17,593,463);
25. setcolor(9);
setfillstyle(1,2);
setcolor(4);
int no;//,count=0;
outtextxy(30,42,"ENTER CUSTOMER NO TO BE
MODIFIED");
gotoxy(65,4);
cin>>no;
f1.open("cust.txt",ios::in|ios::binary);
while(f1.read((char*)&p,sizeof(p)))
{
if(p.c_no==no)
{
f1.close();
int num=sizeof(p)*(no-1);
f1.open("cust.txt",ios::out|ios::ate|
ios::binary);
f1.seekp(num,ios::beg);
outtextxy(30,110,"ENTER NEW RECORD ");
outtextxy(30,150,"NAME");
gotoxy(30,11);
cin>>p.c_name;
outtextxy(30,200,"ADDRESS");
gotoxy(30,14);
cin>>p.c_add;
outtextxy(30,250,"DATE");
gotoxy(30,17);
26. cin>>p.a_date;
outtextxy(30,300,"MONTH");
gotoxy(30,20);
cin>>p.a_month;
outtextxy(30,350,"YEAR");
gotoxy(30,23);
cin>>p.a_year;
f1.write((char*)&p,sizeof(p));
f1.close();
}
}//END OF WHILE
getch();
}
//*************************************************
// FUNCTION TO DELETE ALL CUSTOMER RECORDS
//*************************************************
void cust_adel()
{
remove("cust.txt");
f1.open("cust.txt",ios::out|ios::binary|
ios::in);
p.c_no=0;
p.room_no=0;
}
27. //**********************************************
// FUNCTION TO DELETE A CUSTOMER RECORD
//**********************************************
void cust_del()
{
cleardevice();
f1.close();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(10,10,600,470);
rectangle(10,10,600,470);
setfillstyle(1,7);
bar(17,17,593,463);
rectangle(17,17,593,463);
setcolor(9);
setfillstyle(1,2);
setcolor(4);
int no,count=1;
outtextxy(30,42,"ENTER CUSTOMER NO TO BE
DELETED");
gotoxy(65,4);
cin>>no;
f1.open("cust.txt",ios::in|ios::binary);
fstream f2;
while(f1.read((char*)&p,sizeof(p)))
28. {
if(p.c_no==no)
{
continue;
}
else
{
f2.open("dup.txt",ios::app|
ios::binary);
p.c_no=count;
f2.write((char*)&p,sizeof(p));
count++;
f2.close();
}
}
remove("cust.txt");
rename("dup.txt","cust.txt");
f1.close();
getch();
}
};
//END OF CLASS CUSTOMER
//*****************************************
// THIS CLASS CONTAINS INFORMATION
// ABOUT HOTEL
//*****************************************
29. class hotel
{
private:
fstream f1;
struct cust
{
int c_no;
char c_name[20];
char c_add[20];
int a_date;
int a_month;
int a_year;
int d_date;
int d_month;
int d_year;
int room_no;
char room_type[25];
}x;
public:
};
//END OF CLASS HOTEL
//*******************************************
// CLASS CONTROLLING ALL THE CLASSES
//*******************************************
30. class control
{
private:
int ch;
public:
hotel h;
customer cust;
food d;
//***************************
// FUNCTION FOR PASSWORD
//***************************
void pass()
{
char passw[20];
for(;;)
{
hot_name();
setcolor(4);
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(50,60,600,450);
rectangle(50,60,600,450);
setfillstyle(1,7);
32. settextstyle(7,0,1);
outtextxy(200,340,"PRESS ANY KEY TO
CONTINUE"); }
cleardevice();
}
}
do
{
ch=mmenu();
choice(ch);
}while(ch!=5);//END OF WHILE
}
//*****************************
// FUNCTION FOR HOTEL NAME
//************************
void hot_name()
{
settextstyle(4,0,5);
setcolor(WHITE);
outtextxy(200,3," TIME HOTEL");
line(200,50,440,50);
}
//*****************************
33. // FUNCTION FOR MAIN MENU
//*****************************
int mmenu()
{
cleardevice();
int c;
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(50,80,600,470);
rectangle(50,80,600,470);
setfillstyle(1,7);
bar(57,87,593,463);
rectangle(57,87,593,463);
setcolor(9);
setfillstyle(1,2);
bar(210,140,410,238);
rectangle(210,140,410,158);
rectangle(210,140,410,174);
rectangle(210,140,410,190);
rectangle(210,140,410,206);
rectangle(210,140,410,222);
rectangle(210,140,410,238);
setcolor(WHITE);
settextstyle(4,0,4);
outtextxy(160,20,"HOTEL MANAGEMENT");
35. setbkcolor(BLUE);
outtextxy(70,150,"THANKS FOR VISITING");
setcolor(10);
settextstyle(1,0,8);
outtextxy(100,250,"PROJECT");
settextstyle(1,0,3);
outtextxy(150,450,"SHUTTING DOWN.. . .");
getch();
setcolor(12);
settextstyle(1,0,5);
outtextxy(70,150,"THANKS FOR VISITING");
setcolor(10);
settextstyle(1,0,8);
outtextxy(100,250,"PROJECT");
settextstyle(1,0,3);
outtextxy(150,450,"SHUTTING DOWN.. . .");
for(int i=0;i<10;i++)
{
sound(1000*i);
setbkcolor(i);
nosound();
}
}
//***********************************
// FUNCTION OF CHOICE FOR INFORMATION
36. //***********************************
void choice(int a)
{
switch(a)
{
case 1:
{
information();
break;
}
case 2:
{
cust.cust_detail();
break;
}
case 3:
{
d.food_menu();
break;
}
case 4:
{
cust.cust_bill();
break;
}
37. }
}
//***************************
// FUNCTION FOR INFORMATION
//***************************
void information()
{
cleardevice();
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(17,50,605,470);
rectangle(17,50,605,470);
setfillstyle(1,7);
bar(24,57,598,463);
rectangle(24,57,598,463);
gotoxy(6,4);
setcolor(4);
getch();
}
};
//**********************************************
// THIS IS MAIN FUNCTION CALLING VARIOUS
// FUNCTIONS
39. outtextxy(270,120,"A");
outtextxy(100,240,"PROJECT");
outtextxy(250,360,"ON");
getch();
cleardevice();
setbkcolor(4);
setcolor(GREEN);
for(i=0;i<9;i++)
{
settextstyle(1,0,i);
outtextxy(40+i,140+i," TIME HOTEL ");
sound(200*i);
delay(600);
nosound();
cleardevice();
}
outtextxy(46,146," TIME HOTEL");
getch();
control c;
// void acknow()
//{
// cleardevice();
setbkcolor(BLACK);
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(17,50,605,470);
40. rectangle(17,50,605,470);
setfillstyle(1,7);
bar(24,57,598,463);
rectangle(24,57,598,463);
setcolor(5);
settextstyle(1,0,5);
outtextxy(85,5,"ACKNOWLEDGEMENT");
settextstyle(1,0,3);
setcolor(BLACK);
outtextxy(80,60,"I wish to express my deep
and heartiest");
outtextxy(40,90,"thanks to my sir :Mr. RAMESH
YADAV whose");
outtextxy(40,120,"valueable advice,guidence
and helped me a ");
outtextxy(40,150,"lot in doing this project
from conception to");
outtextxy(40,180,"completion ");
outtextxy(100,210,"I am also very thankful to
my parents ");
outtextxy(40,240,"and friends who gave me
moral encouragement ");
outtextxy(40,270,"to make this project a
success.");
outtextxy(40,300,"SUBMITTED BY:- ");
outtextxy(40,330,"VINEETA ");
outtextxy(40,360,"B.TECH.III Year ");
41. outtextxy(40,390,"Shri Krishan Institute of
");
outtextxy(40,420,"Engg. & Technology ");
getch();
cleardevice();
// FOR VERIFICATION
setfillstyle(7,1);
floodfill(0,0,4);
setfillstyle(7,10);
bar(17,50,605,470);
rectangle(17,50,605,470);
setfillstyle(1,7);
bar(24,57,598,463);
rectangle(24,57,598,463);
setcolor(5);
settextstyle(1,0,5);
outtextxy(120,5,"VERIFICATION");
settextstyle(1,0,3);
setcolor(BLACK);
outtextxy(40,60,"I VINEETA submitting this
project");
outtextxy(40,90,"as an evidence of my work
in computer");
outtextxy(40,120,"lab. in guidence of
Mr.RAMESH YADAV ");
42. outtextxy(40,190,"SUBMITTED BY:-
SUBMITTED TO:-");
outtextxy(40,220,"VINEETA
Mr.RAMESH YADAV");
outtextxy(40,250,"B.TECH.III Year
lecturer in computer");
outtextxy(40,280, "Shri Krishan Institute
Of Hartron Workstation ");
outtextxy(40,310,"Engg. & Technology
");
getch();
cleardevice();
c.pass();
c.bye();
closegraph();
}
//END OF MAIN FUNCTION