0% found this document useful (0 votes)
23 views

Oop Report Final

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Oop Report Final

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

A

Micro project

On

“Hostel Management System”


Submitted By:
Abhijeet Raut (08)
Piyush Shitole (20)
Tanmay Sawade (27)

Guided By:

Mrs. P.V. Javkar

Diploma Course in Computer

Technology (As per directives of I

Scheme, MSBTE)

Sinhgad Institutes

Sinhgad Technical Education Society’s

SOU.VENUTAI CHAVAN

POLYTECHNIC PUNE - 411041

ACADEMIC YEAR 2023-2024


Maharashtra State Board of
Technical Education
Certificate
This is to certify that Ms./Mr. Abhijeet Raut with Roll No. 08 of Semester III
of Diploma in Computer Technology of Institute Sou . Venutai Chavan
Polytechnic (Code : 0040 ) has successfully completed the Micro-Project in
Object Oriented Programming Using C++ (22316) for the academic year
2023-2024 as prescribed in the curriculum.

Program Code: CM

Course Code: CM/3/I

Place: Pune Enrolment No: 2200400284


Date: Exam Seat No:

Mrs. P.V. Javkar Mrs A.V.Kurkute Dr.(Mrs)M.S.Jadhav


Subject Teacher Head of Department Principal
Maharashtra State Board of
Technical Education
Certificate
This is to certify that Ms./Mr. Piyush Shitole with Roll No. 20 of Semester III
of Diploma in Computer Technology of Institute Sou . Venutai Chavan
Polytechnic (Code: 0040 ) has successfully completed the Micro-Project in
Object Oriented Programming Using C++ (22316) for the academic year
2023-2024 as prescribed in the curriculum.

Program Code: CM

Course Code: CM/3/I

Place: Pune Enrolment No:2200400309

Date: Exam Seat No:

Mrs. P.V. Javkar Mrs A.V.Kurkute Dr.(Mrs)M.S.Jadhav


Subject Teacher Head of Department Principal
Maharashtra State Board of
Technical Education

Certificate
This is to certify that Ms./Mr. Tanmay Sawade with Roll No. 27 of Semester
III of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code : 0040 ) has successfully completed the Micro - Project in
Object Oriented Programming Using C++ (22316 ) for the academic year
2023-2024 as prescribed in the curriculum.

Program Code: CM

Course Code: CM/3/I

Place: Pune Enrolment No:2200400323

Date: Exam Seat No:

Mrs. P.V. Javkar Mrs A.V.Kurkute Dr.(Mrs)M.S.Jadhav


Subject Teacher Head of Department Principal
INDEX

SR NO CONTENTS PAGE NO

1 Aim of the Micro-Project 1

2 Rationale 3

3 Course Outcomes Achieved 3

4 Literature Review 3

5 Actual Methodology Followed 7

6 Actual Resources Used 7

7 Skills Developed 14

8 Applications of Micro Project 14


Object Oriented Programming Using C++ - 22316 Hostel Management System

Annexure - I
Micro-Project Proposal

1.0 Aim of the Micro-Project:


The aim of the Micro-project is to create Hostel Management System using C++.

2.0 Intended Course Outcomes:


a) Develop C++ program to solve problems using Procedure Oriented Approach.
b) Develop C++ program using classes and objects.
c) Develop C++ program to perform file operations.
d) Develop C++ program to using concept of inheritence.

3.0 Proposed methodology:

I. Study classes and objects in C++ and its uses.


II. Study the various syntaxes of C++ language.
III. Study to read and write into files, by file operations.
IV. Study the management and booking system.
V. Design structure of systems.
VI. Implement program to create management system.
VII. Prepare the final report.
Object Oriented Programming Using C++ - 22316 Hostel Management System

4.0 Action Plan:


Name of
Sr. Planned Planned
Details of Activity responsible
No. Start Date Finish Date
Team members

1 Identify the requirements of the Abhijeet Raut.


project.

2 Design the structure of the project. Piyush Shitole.

3 Develop a program using C++ Tanmay


language.
Sawade.
4 Debug code and eliminate errors
Abhijeet Raut
occurred while compilation.

5 Test the project. Piyush


Shitole
6 Prepare the final report. Tanmay Sawade

5.0 Resources Required:

S. No. Resources required Specifications


1 Computer system Intel(R) Core i5 CPU, RAM 4 GB
2 Operating System Windows 11, 64 Bit Operating System
3 Software’s DevC++, Sublime text editor

6.0 Team members:

S. No. Roll. number Name of Student


1 08 Abhijeet Raut
2 20 Piyush Shitole
3 27 Tanmay Sawade
Object Oriented Programming Using C++ - 22316 Hostel Management System

Annexure - II
Micro-Project Report

1.0 Rationale:

Hostels are becoming one of the basic necessity when it comes to education
institutions . For seamless and easy experience for admissions ,one can create its
system using programming language from which Hostel management ,can be made
easy. Education is almost a basic nessecity of humanity these days and in order to
handle such a large number of students and to provide them with hosteling service, we
can take help of programming languages, from which we can create applications for
Hostel management system.
People can use services of management system in their convenience with help of this
applications.
To create such systems programming languages like C++ can perform crucial role.

2.0 Aim of the Micro-Project:


The aim of the Micro-project is to create Hostel management System using C++.

3.0 Course Outcomes Achieved:


a) Develop C++ program to solve problems using Procedure Oriented Approach.
b) Develop C++ program using classes and objects.
c) Develop C++ program to perform file operations.
d)Develop C++ program using concept of inheritence.

4.0 Literature Review:


The programs demonstrate the use of the following functions, which are widely used
in C++:
a) Classes and objects in C++.
b) File handling i.e., reading and writing from/to a file.
c) Decision making statements in C++.
Object Oriented Programming Using C++ - 22316 Hostel Management System

a) Classes and objects in C++:

 A class is an extension of the idea of structure used in C, which provide a method


for packing together data of different types. The data items are logically related.
Class is a new way of creating and implementing a user defined data type.
 The only difference between a structure and class in C++ is that, by default, the
members of a class are private while, by default, the members of a structure are
public.

Syntax:

class class_name
{
// Any variable declaration
// Any function declaration
};

E.g.:
class Book
{
string name; // variable declaration
void library(); // function declaration
};

b) File handling:

 In many applications, one has to save the data or settings which has been created
by the user, because we can’t save it within the program, so to save them we need
to save it on secondary storages like Hard disk or SSD.
 Our programmes run in primary memory i.e., RAM, after shutting down our
computer, all the data stored in primary storage is deleted, so in order to save
those data we can use file operation.
 Using file operation, we can read as well as write to a file. And to do this in C++
we need to use a header file named “fstream.h”.
 We need to declare an object first, to perform reading and writing from a file.
Object Oriented Programming Using C++ - 22316 Hostel Management System

 To open and close a file:


Syntax:
fstream object_name;
object_name.open(“file_name”); // To open file
object_name.close(); // To close file

 To read into a file:


To read from a file, one need to use while loop, in order to copy the content of file to
an array and then display it.
Syntax:
ofstream object_name;
object_name.open(“file_name”); // To open file
char line[100]; // Declaring array to copy content into.

while(object_name)
{
getline(object_name, line); // Copying word by word into array
}
object_name.close(); // closing file

 To write into file:


Syntax:
ifstream object_name;
object_name.open(“file_name”); // To open file

object_name << “C++ by Bjarne Stroustrup”; // Writing to file


object_name.close(); // closing file

c) Decision making statements in C++:

Decision making statements are used in order to control and perform actions based
on different conditions. In our program we used the following conditional
statements:

 Use ‘switch’ to specify many alternative blocks of code to be executed.


 Use ‘if-else’ to specify a block of code to be executed, if a specified
condition is true, and if not, the else block code will be executed.
Object Oriented Programming Using C++ - 22316 Hostel Management System

a) The ‘switch’ statement:

Use ‘switch’ statement which allows a value to change control of execution.

Syntax:

switch(expression) {
case 1:
// Block of code to be executed if expression = 1
break;

case 2:
// Block of code to be executed if expression = 2
break;
….
case n:
// Block of code to be executed if expression = n
break;
default:
// Block of code to be executed if expression does not match any cases
}

b) The ‘if-else’ statement:

Use the ‘if-else’ statement to specify a block of code to be executed if the condition is
true and if not, the else block code will be executed.

Syntax:

if (condition) {

// Block of code to executed if the condition is true

} else {

// Block of code to be executed if the condition is false

}
Object Oriented Programming Using C++ - 22316 Hostel Management System

5.0 Actual Methodology Followed:


The aim of the Micro-project is to create Railway Reservation System using C++.

I. Study classes and objects in C++ and its uses.


II. Study the various syntaxes of C++ language.
III. Study to read and write into files, by file operations.
IV. Study the management and booking system.
V. Design structure of systems.
VI. Implement program to create management system.
VII. Prepare the final report.

6.0 Actual Resources Used:

S. No. Resources required Specifications


1 Computer system Intel(R) Core i5 CPU, RAM 4 GB
2 Operating System Windows 11, 64 Bit Operating System
3 Software’s Dev++, Sublime text editor

7.0 Source code of program:

#include<iostream.h>
#include<conio.h>
class hostel
{
protected:
int bno;
int choice; float amount;
public:
void gethostel()
{
cout<<"AVAILABLE ROOMS ARE 242:";
back:
cout<<"\n***Desired hostel type 1.CLASSIC,2.REGULAR,3.NRI:*** ";
cin>>choice;
switch(choice)
{
case 1:
cout<<"**CLASSIC*AMENITIES******";
cout<<"\n=========================";
cout<<"\n FACILITY NAME and OTHER CHARGES"<<"\t charges";
Department of Computer Technology Academic Year 2023-24
Object Oriented Programming Using C++ - 22316 Hostel Management System
cout<<"\n 1.deposit "<<"\t 35000";
cout<<"\n 2.rent per month"<<"\t 5000";
cout<<"\n 3.maintenance charge"<<"\t 5000";
cout<<"\n 4.mess charges per month"<<"\t 4000";
cout<<"\n 5.admission procedure"<<"\t 2000";
cout<<"\n 5.OTHER FACILITIES INCLUDE";
cout<<"\n 6.24 hrs water supply";
cout<<"\n 7.7am to 10am hot water"<<"\t\t";
cout<<"\n 8. 24 hrs electricity supply"<<"\t";
cout<<"\n 9.personal locker and cupboard";
cout<<"\n 10.high speed elevaters";
cout<<"\n 11.3 individuals in one room";
amount=150000;
break;
case 2:
cout<<"***REGULAR*facility****";
cout<<"\n FACILITY NAME and OTHER CHARGES"<<"\t charges";
cout<<"\n 1.deposit "<<"\t 13000";
cout<<"\n 2.rent per month"<<"\t 3000";
cout<<"\n 3.maintenance charge"<<"\t 1000";
cout<<"\n 4.mess charges per month"<<"\t 4000";
cout<<"\n 5.admission procedure"<<"\t 2000";
cout<<"\n 5.OTHER FACILITIES INCLUDE";
cout<<"\n 6.24 hrs water supply";
cout<<"\n 7.24 hrs electricity supply";
cout<<"\n 8.4 individuals in one room";
amount=100000;
break;
case 3:
cout<<"***NRI**facility****";
cout<<"\n FACILITY NAME and OTHER CHARGES"<<"\t\t";
cout<<"\n 1.deposit"<<"\t 52000";
cout<<"\n 2.rent per month"<<"\t 7000";
cout<<"\n 3.maintenance charge"<<"\t 10000";
cout<<"\n 4.mess charges per month"<<"\t 6000";
cout<<"\n 5.admission procedure"<<"\t 2000";
cout<<"\n 5.OTHER FACILITIES INCLUDDE";
cout<<"\n 6.24 hrs water supply";
cout<<"\n 7.24 hrs hot water"<<"\t\t";
cout<<"\n 8. 24 hrs electricity supply"<<"\t";
cout<<"\n 9.personal locker and cupboard";
cout<<"\n 10.high speed elevaters";
cout<<"\n 11.ventilated and air conditioned rooms";
cout<<"\n 12.laundary facility";
cout<<"\n 13. cleaning workers";
cout<<"\n 14. 2 individuals in one room";
amount=220000;
Department of Computer Technology Academic Year 2023-24
Object Oriented Programming Using C++ - 22316 Hostel Management System
break;
default:
cout<<"invalid choice re-enter:";
goto back;
break;
}
previous:
cout<<"\n****enter the building number from 1 to 20:****";
cin>>bno;
if(bno<=9)
{
cout<<"SORRY! ROOMS IN THIS BUILDING ARE BOOKED ALREADY";
cout<<"available buildings\nbuilding-10\nbuilding-11\nbuilding-12\nbuilding-13\nbuilding-14\
nbuilding-15\ nbuilding-16\nbuilding-17\nbuilding-18\nbuilding-19\nbuilding-20\n";
cout<<"**please!select another building:**";
goto previous;
}
else
{
cout<<"\n\n**building selected:**\n you will get your room number soon!:\n";
}
}
void showhostel()
{
cout<<endl<<"building number:"<<bno<<endl<<"hostel type:"<<choice<<endl;
}
};
class user:public hostel
{
protected:
int age;
char name[20];
char sname[20];
public:
void getuser()
{
cout<<"***welcome to ATMOSPHERE BOYS HOSTEL***\n";
cout<<"enter the student's name:"; cin>>name;
cout<<"enter student's surname:"; cin>>sname;
back:
cout<<"enter the student's age:"; cin>>age;
if(age>=12&&age<=25)
{
cout<<"\nHURRAY!got you a room:\n";
}
else
{
Department of Computer Technology Academic Year 2023-24
Object Oriented Programming Using C++ - 22316 Hostel Management System
cout<<"SORRY! WE ACCEPT ADMISSIONS ONLY BETWEEN AGE (12-25) we don't have
rooms for your age:"<<endl;
cout<<"Enter age again:"<<endl;
goto back;
}
}
void displayuser()
{
cout<<endl<<"name:"<<name<<endl<<"age:"<<age;
}
};

class pay:public user


{
protected:
float payed; float remaining;
public:
void getpay()
{
cout<<"\nPAYMENT MODE?:\ncash-\ncheck-xxxxx\nonline-gpay,phonepe,paytm,bhimUPI";
cout<<"\nthe total amount is:"<<amount;
back:
cout<<"minimum amount is 20000!:";
cout<<"\nenter the amount you are willing to pay now:"; cin>>payed;
if(payed>=20000&&payed<=100000)
{
cout<<"\naccomplished\n";
}
else
{
cout<<"please enter valid amount";
goto back;
}
remaining=amount-payed;
cout<<"\nthe remaining amount is:"<<remaining;
}
void displaypay()
{
cout<<"amount:"<<amount<<endl<<"payed:"<<payed<<endl<<"remaining:"
<<remaining<<endl<<endl<<"THANKS!REFER YOUR FRIENDS TOO!"<<endl<<"overjoyed to
serve you";
}
};
void main()
{
clrscr();
pay x;
Department of Computer Technology Academic Year 2023-24
Object Oriented Programming Using C++ - 22316 Hostel Management System
x.gethostel();
x.getuser();
x.getpay();
x.showhostel();
x.displayuser();
x.displaypay();
getch();
}

Output:

Department of Computer Technology Academic Year 2023-24


Object Oriented Programming Using C++ - 22316 Hostel Management System

9.0 Skills Developed:


During the course of this micro-project, we learned to create HOSTEL MANAGEMENT
system by using C++,
a) We learnt various new syntaxes of C++ language and syntaxes of file operations,
b) We also learned to write and read into/from file.
c) We also learnt classes and objects in C++.

10.0 Applications of this Micro-project:


This micro-project finds its application in:
a) Hostel Management System mobile application.
Department of Computer Technology Academic Year 2023-24
Object Oriented Programming Using C++ - 22316 Hostel Management System
b) For online admission and fee payment system through websites.
c) For handling hostel rooms, admissions, payment of data by owner of hostel
buildings.

11.0 Area of future Improvement:


In future, this microproject can be ported in application on different platforms like Android ,
iOS, Windows for admissions, management , fee payment through mobile devices. Also, it can
be used by hostel authoritys websites for easy and secure management of students and hostel
rooms.

12.0 Conclusion:
We learn to design Hostel Management System using C++, also we understood basic
fundamentals of hostel management systems.

Department of Computer Technology Academic Year 2023-24

You might also like