0% found this document useful (0 votes)
64 views24 pages

OOP MP (Edited)

Mr./Ms. [Name] completed a micro project on developing a library management application as part of an Object Oriented Programming course. The project aimed to apply OOP concepts in C++ and involved collecting information, analyzing data, preparing reports, and presenting the project. Skills developed included teamwork, problem solving, and technical writing. The project was assessed based on its relevance, analysis, prototype quality, and presentation. It helped achieve course outcomes related to procedural programming, classes, inheritance, polymorphism, and file operations in C++.

Uploaded by

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

OOP MP (Edited)

Mr./Ms. [Name] completed a micro project on developing a library management application as part of an Object Oriented Programming course. The project aimed to apply OOP concepts in C++ and involved collecting information, analyzing data, preparing reports, and presenting the project. Skills developed included teamwork, problem solving, and technical writing. The project was assessed based on its relevance, analysis, prototype quality, and presentation. It helped achieve course outcomes related to procedural programming, classes, inheritance, polymorphism, and file operations in C++.

Uploaded by

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

VIDYAVARDHINI’S BHAUSAHEB VARTAK


POLYTECHNIC ,VASAI ROAD WEST

MICRO PROJECT
Academic year: 2021-22

Title of Micro Project:


Develop a library management application

Program/Code: Computer Engineering (CO) Semester: THIRD


Course/Code: Object Oriented Programming using C++ (22316)

Name: Roll No:


Enrolment No.:

Name of Faculty: Mrs. Kshipra Mokashi


MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION

Certificate

This is to certify that Mr. /Ms.…………………………………………………. …

Roll No of THIRD Semester of Diploma in of Computer Engineering (CO)


Institute, B.V. POLYTECHNIC (Code: 0093) has completed the Micro Project
satisfactorily in Subject – object oriented programming (22316) for the academic
year 2019- 2020 as prescribed in the curriculum.

Place: Vasai Enrolment No:

Date: ……………………… Exam. Seat No: …………………………………….

Subject Teacher Head of the Department Principal

Seal of

Institution
Annexure - I

Part A: Micro Project Proposal

1.1 Aim/Benefits of the Micro-Project:


The aim is to develop applications using OOP’s concepts in C++
2.1 Course Outcomes integrated:
1. Develop C++ programs to solve problems using procedure oriented approach
2. Develop C++ programs using classes and objects
3. Implement inheritance in C++ program
4. Use polymorphism in C++ program
5. Develop C++ programs to perform file operations
3.1 Proposed Methodology:
1. Collect information through different sources
2. Analysis of data.
3. Compilation of collected data.

4.0 Action Plan

Sr. Planned Planned Name of


Details of the activity
No. Start date Finish date Members
1 Formation of Group & Topic Selection All members
2 Submission of Proposed Plan All members
3 Preparation of Report All members
4 Final valuation of a working Report All members
5 Presentation of Report All members
6 Submission of Final Report All members

5.0 Resource Required:


Sr.
Name of resources/Material Specifications Qty Remarks
No.
Processor: i3
1. Computer 1
RAM : 4.00 GB
2. Microsoft Word Word -2016
3. Printer Hp Laser Jet 1
Javapoint.com
4. Book/ website name
Wikipedia.com
6.0 Name of Team Members with Roll No:

Roll No Individual
Sr. Process and Total
Name of Students Presentation
No. Product
assessment (06) (04) (10)

01

02

03

04

Name & Signature of Faculty: Mrs. Kshipra Mokashi


Annexure- II

Final Micro Project Report


Title: develop a library management
application

Rationale: The aim is to develop applications using OOP’s concepts in C++


2. 0 Course Outcomes Integrated:
1. Develop C++ programs to solve problems using procedure oriented approach
2. Develop C++ programs using classes and objects
3. Implement inheritance in C++ program
4. Use polymorphism in C++ program
5. Develop C++ programs to perform file operations

3.0 Actual Procedure Followed.


1 Discussion about topic with guide and among group members
2 Information collection
3 Compilation of content
4 Editing and revising content
5 Report Preparation
4.0: Actual Resources Required:

Sr.
Name of resources/Material Specifications Qty Remarks
No.
Processor: i3
1. Computer 1
RAM : 4.00 GB
2. Microsoft Word Word -2016
3. Printer Hp Laser Jet 1
Javapoint.com
4. Book/Site name
Wikipedia.com

7.0 Skill Developed/Learning outcomes of this Micro-Project

The following skills were developed:


1. Teamwork: Learned to work in a team and boost individual confidence.
2. Problem-Solving: Developed good problem solving habits.
3. Technical Writing: Preparing the report of proposed plan and the final report.
Annexure - III

Rubrics for Assessment of Micro-Project

Title: develop a library management application


Institute Code: 0093 Academic year: 2022-23
Program: Course & Code: OOP (22316)
Name of Candidate: Roll No:
Semester: THIRD Name of Faculty: Mrs.Kshipra Mokashi

Sr. Poor Average Good Excellent


Characteristic to be Assessed
No. (Marks 1-3) (Marks 4-5) (Marks 6-8) (Marks 9-10)

1. Relevance to the Course


Literature Survey/Information
2.
Collection
3. Project Proposal
Completion of the Target as per
4.
Project Proposal
5. Analysis of Data and Representation
6. Quality of Prototype/Model
7. Report Preparation
8. Presentation
9. Viva
Annexure- IV

Micro-Project Evaluation Sheet


Title: develop a library management application
Institute Code: 0093 Academic year: 2021-22
Program: Course & Code: OOP (22316)
Name of Candidate: Roll No:
Semester: THIRD Name of Faculty: Mrs. Kshipra Mokashi
Course Outcomes Achieved:
1. Develop C++ programs to solve problems using procedure oriented approach
2. Develop C++ programs using classes and objects
3. Implement inheritance in C++ program
4. Use polymorphism in C++ program
5. Develop C++ programs to perform file operations
Evaluation as per Suggested Rubric for Assessment of Micro Project:
Sr. Characteristic to be Poor Average Good Marks Excellent Sub
No. assessed Marks Marks 4-5 6-8 Marks 9-10 Total
1-3
(A) Process and product assessment Out Of 6

1 Relevance to the course

2 Literature Survey .
Information Collection
3 Completion of the
Target as per project
proposal
4 Analysis of Data and
representation
5 Quality of
Prototype/Model/Conte
nt
6 Report Preparation
(B) Individual Presentation/Viva Out of 4
7 Presentation .
8 Viva

Name and designation of the Faculty Member: Mrs.Kshipra Mokashi


Weekly Activity Sheet
Topic: develop a library management application
Institute Code: 0093 Academic year: 2021-22
Program: Course & Code: OOP (22316)

Name of Candidate: Roll No:

Semester: THIRD Name of Faculty: Mrs. Kshipra Mokashi

SR. NO WEEK ACTIVITY PERFORMED

1. 1st Week Discussion and Finalization of Topic


2. 2nd Week Literature Review
3. 3rd Week Submission of Proposed Plan
4 4th Week Information Collection
5. 5th Week Analysis of Data
6. 6th Week Compilation of content
7. 7th Week Editing and Revising the Content
8. 8th Week Report Preparation
9. 9th Week Report Preparation
10. 10th- 12th Week Presentation

Signature of Student Dated Signature of Faculty


ACKNOWLEDGEMENT

This Microproject would not have been possible without considerable guidance

and support so, we would like to acknowledge those who have enable us to

complete this project. Firstly we would like to thank our project guide,

Mrs.Kshipra Mokashi (Lecturer in Bhausaheb Vartak Polytechnic) for providing

the guideline with continuous advice and feedback throughout the duration of

finishing the project; their opinion and suggestion have helped us in a realizing

this project. Also, not to be forgotten, we would like to thank all our friends

with the report valuable opinion and sharing ideas during the process of this

project. Finally, we would like to thank our families for their understanding,

encouragement and support towards the completion of project thank you so

much
INDEX

SR NO. CONTENT PAGE NO.

1. Acknowledgement

2. Introduction to Object Oriented programming

3. Structure of Object Oriented programming

4. Principles of OOP

5. Benefits of OOP

6. Program

7. Output

8. References
Introduction to Object Oriented
Programming

Object-oriented programming (OOP) is a computer programming model that


organizes software design around data, or objects, rather than functions and
logic. An object can be defined as a data field that has unique attributes and
behavior. OOP focuses on the objects that developers want to manipulate rather
than the logic required to manipulate them. This approach to programming is
well-suited for programs that are large, complex and actively updated or
maintained. This includes programs for manufacturing and design, as well as
mobile applications; for example, OOP can be used for manufacturing system
simulation software. The organization of an object-oriented program also makes
the method beneficial to collaborative development, where projects are divided
into groups. Additional benefits of OOP include code reusability, scalability and
efficiency. The first step in OOP is to collect all of the objects a programmer
wants to manipulate and identify how they relate to each other -- an exercise
known as Data Modelling. Examples of an object can range from physical
entities, such as a human being who is described by properties like name and
address, to small computer programs, such as widgets Once an object is known,
it is labeled with a class of objects that defines the kind of data it contains and
any logic sequences that can manipulate it. Each distinct logic sequence is
known as a method. Objects can communicate with well-defined interfaces
called messages
Structure of Object Oriented Programming
The structure, or building blocks, of object-oriented programming include the
following:

• Classes are user-defined data types that act as the blueprint for individual
objects, attributes and methods.
• Objects are instances of a class created with specifically defined data. Objects
can correspond to real-world objects or an abstract entity. When class is defined
initially, the description is the only object that is defined.
• Methods are functions that are defined inside a class that describe the behaviors
of an object. Each method contained in class definitions starts with a reference to
an instance object. Additionally, the subroutines contained in an object are called
instance methods. Programmers use methods for reusability or keeping
functionality encapsulated inside one object at a time.
• Attributes are defined in the class template and represent the state of an object.
Objects will have data stored in the attributes field. Class attributes belong to the
class itself.
Principles of OOP
Object-oriented programming is based on the following principles:

• Encapsulation. This principle states that all important information is


contained inside an object and only select information is exposed. The
implementation and state of each object are privately held inside a defined class.
Other objects do not have access to this class or the authority to make changes.
They are only able to call a list of public functions or methods. This
characteristic of data hiding provides greater program security and avoids
unintended data corruption.
• Abstraction. Objects only reveal internal mechanisms that are relevant for the
use of other objects, hiding any unnecessary implementation code. The derived
class can have its functionality extended. This concept can help developers more
easily make additional changes or additions over time.
• Inheritance. Classes can reuse code from other classes. Relationships and
subclasses between objects can be assigned, enabling developers to reuse
common logic while still maintaining a unique hierarchy. This property of OOP
forces a more thorough data analysis, reduces development time and ensures a
higher level of accuracy.
• Polymorphism. Objects are designed to share behaviors and they can take on
more than one form. The program will determine which meaning or usage is
necessary for each execution of that object from a parent class, reducing the need
to duplicate code. A child class is then created, which extends the functionality
of the parent class. Polymorphism allows different types of objects to
through the same interface.
Benefits of OOP
• Modularity. Encapsulation enables objects to be self-contained, making
troubleshooting and collaborative development easier.
• Reusability. Code can be reused through inheritance, meaning a team does not
have to write the same code multiple times.
• Productivity. Programmers can construct new programs quicker through the
use of multiple libraries and reusable code.
• Easily upgradable and scalable. Programmers can implement system
functionalities independently.
• Interface descriptions. Descriptions of external systems are simple, due to
message passing techniques that are used for objects communication.
• Security. Using encapsulation and abstraction, complex code is hidden,
software maintenance is easier and internet protocols are protected.
• Flexibility. Polymorphism enables a single function to adapt to the class it is
placed in. Different objects can also pass through the same interface.
FLOWCHART:

Start

Declaration of global variable


const int m = 20;

Class Dept

Private:
int amount[m], pris[m], k,
a, b, amount1,code1,
cod[m], s, last, code;

Public:
float
price1,price; de
pt(void);
void sell(void);
void
total_items(void);
void add_old(void);
void add_new(void);
void show(void);
void menu(void);

int main();

End
//1246
//1247
//1248

#include <iostream>
#include <conio.h>
#include <stdlib.h>
#include <iomanip>
using namespace std;
const int m = 20;
class dept
{
int amount[m], pris[m], k, a, b, amount1;
int code1, cod[m], s, last, code;

public:
float price1, price;
dept(void);
void sell(void);
void total_items(void);
void add_old(void);
void add_new(void);
void show(void);
void menu(void);
};
dept::dept(void)
{
s = 0;
a = 10;
b = 40;
last = 5;
amount[0] = 0;
for (int k = 0; k < last; k++)
{
s = s + 1;
b = b + 10;
cod[k] = s;
amount[k] = a;
pris[k] = b;
}
}
void dept::add_old(void)
{
system("cls");
cout << "\nEnter item code:";
cin >> code1;
cout << "\nEnter item price:";
cin >> price1;
for (k = 0; k < last; k++)
{
if (code1 == cod[k])
{
a = a + 1;
amount[k] = a;
pris[k] = price1;
}
}
cout << "Enter 0 for Main menu ::";
}
void dept::add_new(void)
{
system("cls");
cout << "\nEnter item code:";
cin >> code1;
cout << "\nEnter amount of that item:";
cin >> amount1;
cout << "\nEnter item price:";
cin >> price1;

cod[last] = code1;
amount[last] = amount1;
pris[last] = price1;
last++;
cout << setw(40);
cout << "Enter 0 for Main menu ::";
}
void dept::show(void)
{
system("cls");
for (k = 0; k < last; k++)
{
cout << setw(40);
cout << "CODE:" << cod[k] << "\t";
cout << "AMOUNT:" << amount[k] << "\t";
cout << "PRICE:" << pris[k] << endl;
cout << endl;
}
cout << "//---------------------------------------------------------------------------------------------------
--------------\\" << endl;
cout << endl;
cout << setw(40);
cout << "Enter 0 for Main menu ::";
}
void dept::sell(void)
{
cout << setw(40);
cout << "Enter product code:";
cin >> code;
cout << setw(40);
cout << "Enter product price:";
cin >> price;
cout << endl;
}
void dept::total_items(void)
{
cout<<endl;
cout<<endl;
cout << setw(40);
cout << "ITEM CODE:"
<< code << "\t";
cout << setw(40);
cout << "ITEM PRICE:"
<< price << "\t";
cout << endl;

}
void dept::menu(void)
{
system("cls");

cout << "<<------------------------------------------------------------------------------------->>>" <<


endl;
cout << setw(60);
cout << "---CHOOSE A NUMBER---" << endl;
cout << endl;
cout << setw(50);
cout << " Main menu .0" << endl;
cout << endl;
cout << setw(50);
cout << " Show all stored items .1" << endl;
cout << endl;
cout << setw(50);
cout << " Edit item .2" << endl;
cout << endl;
cout << setw(50);
cout << " Add a new item .3" << endl;
cout << endl;
cout << setw(50);
cout << " Sell an item .4" << endl;
cout << endl;
cout << setw(50);
cout << " Total money earned .5" << endl;
cout << endl;
cout << setw(50);
cout << " Show total items sold .6" << endl;
cout << endl;
cout << setw(50);
cout << " Quit .7" << endl;
cout << endl;
cout << "<<------------------------------------------------------------------------------------->>>" <<
endl;
cout << endl;
cout << setw(48);
cout << "Enter Your Choice ::";
}
int main()
{
int size;
dept d[10], print;
static int j = 0;
int x, i = 0, p, s = 0;

print.menu();

do
{
cin >> x;
switch (x)
{
case 1:
d[i].show();
break;
case 2:
d[i].add_old();
d[i].show();
break;
case 3:
d[i].add_new();
d[i].show();
break;
case 4:
system("cls");
cout << setw(40);

cout << "How many items you want to sell :";

cin >> size;


for (int i = 0; i < size; i++)
{
cout << endl;
d[i].sell();
}

i++, j++;
cout << setw(40);
cout << "Item sold" << endl;
cout << endl;
cout << setw(40);
cout << "Enter 0 for Main menu ::";

;
break;
case 5:
{
system("cls");
cout << setw(40);
cout<<endl;
cout<<endl;
cout << "Money earned:"<<"\t";
s = 0;

for (p = 0; p < size; p++)


{
s = s + d[p].price;
}
cout << s << "Rupees.\n";
cout << endl;
cout << setw(40);
cout << "Enter 0 for Main menu ::";
}
break;
case 6:
system("cls");
for (int i = 0; i < size; i++)
{
d[i].total_items();
}
cout << "//-----------------------------------------------------------------------------------------------
------------------>>" << endl;
cout << setw(40);
cout<<endl;
cout<<endl;
cout<<endl;
cout << "Enter 0 for Main menu ::";
break;
case 7:
break;
case 0:
system("cls");
d[i].menu();
break;
}
} while (x != 7);
getch();
return 0;
}
Output:

Main menu.0

Show all stored items .1


Edit item .2

Add a new item .3


Sell an item .4

Total money earned .5

Show total items sold .6

References::
Geeksforgeeks
Techtarget
w3schools

You might also like