0% found this document useful (0 votes)
13 views12 pages

OOP Microproject 45-48

The document outlines a micro-project titled 'Store Management by using Constructor' submitted by students for the Object-Oriented Programming course. It details the project's aim to implement a store management system using constructors in C++, highlighting the objectives, methodology, and expected outcomes. The project emphasizes the application of OOP principles, specifically constructors, to manage store item data effectively.
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)
13 views12 pages

OOP Microproject 45-48

The document outlines a micro-project titled 'Store Management by using Constructor' submitted by students for the Object-Oriented Programming course. It details the project's aim to implement a store management system using constructors in C++, highlighting the objectives, methodology, and expected outcomes. The project emphasizes the application of OOP principles, specifically constructors, to manage store item data effectively.
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/ 12

Store Management by

using Constructor
Submitted in fulfillment of the requirements of
micro-project

OBJECT ORRIENTED PROGRAMING (OOP)

By

Roll no:- Name: -

45 Manas Patil

46 Shravani Patil

47 Sudeep Patil

48 Rohan Rajage

ENROLLMENT NO:

23112120333

23112120334

23112120335

23112120336

SUBJECT INCHARGE

Mrs. JYOTI SHINDE

Computer Engineering Department

Academic Year 2024-2025


CERTIFICATE
This is to certify that the microproject

“Store Management by

using Constructor”
is done by
“Manas Patil”
“Shravani Patil”

“Sudeep Patil”
“Rohan Rajage”

is submitted for

“OBJECT ORIENTED PROGRAMING”


for
the diploma in Computer Engineering to the

Maharashtra State Board of Technical Education, Mumbai


(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)

Subject Incharge Head of Department


(Mrs. Jyoti Shinde ) (Mrs. Smita kuldiwar)
Store Management by

using Constructor
Submitted in fulfillment of the requirements

of micro-project

OBJECT ORIENTED PROGRAMING

By

Process and Individual Total


product Presentation/ (10)
Roll Name Enrollment assessment
No No (6Marks) work
(4
marks)
45 Manas 23112120333
Patil

46 Shravani 23112120334
Patil

47 Sudeep 23112120335
Patil

48 Rohan 23112120336
Rajage

SUBJECT INCHARGE
( Mrs. Jyoti Shinde )

Computer Engineering Department

Academic Year 2024-2025


COMPUTER ENGINEERING DEPARTMENT VISION AND
MISSION OF THE PROGRAMME

Vision: -

To provide technically competent and skilled diploma


computer engineers to fulfill the needs of industry and society.

Mission: -

M1: - To provide industry-oriented quality education and

training. M2: - To impart and inculcate theoretical and practical

knowledge.M3: - To provide interpersonal skills and social ethics.


COMPUTER ENGINEERING DEPARTMENT PROGRAMME
OUTCOMES

PO1: Basic and Discipline specific knowledge: Apply knowledge of basic mathematics,
science and engineering fundamentals and engineering specialization to solve the engineering
problems.

PO2: Problem analysis: Identify and analyze well-defined engineering problems using
codified standard methods.

PO3: Design/ Development of solutions: Design solutions for well-defined technical


problems and assist with the design of systems components or processes to meet specified
needs.

PO4: Engineering Tools, Experimentation and Testing: Apply modern engineering


tools and appropriate technique to conduct standard tests and measurements.

PO5: Engineering practices for society, sustainability and environment: Apply


appropriate technology in context of society, sustainability, environment and ethical
practices

PO6: Project Management: Use engineering management principles individually, as a


team member or a leader to manage projects and effectively communicate about well-
defined engineering activities.

PO7: Life-long learning: Ability to analyze individual needs and engage in updating in the
context of technological changes
COMPUTER ENGINEERING DEPARTMENT PROGRAMME
EDUCATIONAL OBJECTIVES
PEO1: Provide socially responsible, environment friendly solutions
to Computer engineering related broad-based problems adapting professional ethics.

PEO2: Adapt state-of-the-art Computer engineering broad-based technologies to work in


multidisciplinary work environments.

PEO3: Solve broad-based problems individually and as a team member communicating


effectively in the world of work.

PROGRAMME SPECIFIC OUTCOMES


PSO1: Computer Software and Hardware Usage: Use state-of-the-art technologies for
operation and application of computer software and hardware.

PSO2: Computer Engineering Maintenance: Maintain computer engineering related


software and hardware systems.
Store Management by

using Constructor

• Aim: -
" Constructor Usage: The constructor is used to initialize the properties (itemID,
itemName, itemPrice, and itemQuantity) when an object of Store is created.”
“Simple Store Management: The program allows you to store and display item details
and calculate their total value based on the price and quantity.”
• Course Outcomes: -

1.Understand Object-Oriented Concepts:


2. Implement Constructors for Object Initialization:
3. Design Simple Store Management System:
4. Develop Practical Programming Skills:
5. Handle String Manipulation:
• Proposed Methodology
The proposed methodology for the "Store Management by Using Constructor" micro project involves
first analyzing the requirements to manage store items, such as storing item ID, name, price, and
quantity. The next step is to design a Store class with private data members for each attribute and a
constructor to initialize these attributes when an object is created. Functions are implemented to display
item details, update item information, and calculate the total value based on price and quantity.
• Action Plan
Sr. Detail of activity Plan Start Date Plan Finish Date
No.

1. Searching of Topic 26/ 08 / 2024 14 / 09 / 2024

2. Gathering information 18 / 09 / 2024 03 / 10 / 2024

3. Execution of Program 05 / 10 / 2024 07 / 10 / 2024

4. Report Making 10 / 10 / 2024 16 / 10 / 2024

Subject In-charge

(Mrs. Jyoti Shinde )


Store Management by

using Constructor

Rationale:
The rationale for the "Store Management by Using Constructor" micro project is to provide
students with a practical application of object-oriented programming (OOP) concepts, specifically
the use of constructors for initializing objects. By developing a simple store management system,
students can learn how to design and implement classes, work with constructors, and manage data
efficiently. This project helps in understanding key OOP principles like data encapsulation, object
initialization, and class design.
Literature:
The literature for the "Store Management by Using Constructor" micro project explores the
application of Object-Oriented Programming (OOP) principles, particularly in C++. OOP is a
programming paradigm that organizes software around objects and classes, enabling more
modular, reusable, and maintainable code. In this context, constructors play a crucial role in
initializing objects, ensuring that they are in a valid state from the moment they are created. The
use of constructors to initialize item details such as ID, name, price, and quantity in a store
management system is a direct application of this concept.

Resources Required:
Sr. Name of Specification Qty. Remark
Resources
No.
(components
)

1. Laptop/Computer Intel Core i5, 16 GB RAM 1 For coding and


simulation

GeeksforGeeks, Programiz For reference and


2.
troubleshooting |
Online Resources 1

3. Turbo C++ 3.2


Software 1 The Code
Performance

Skill Developed:

"Developed skills in object-oriented programming, problem-solving, and analytical thinking


through implementation of Constructor, Store Management concepts."
Application:
1.Object-Oriented Programming (OOP) Skills: Students learn to design and implement classes and
objects, grasping fundamental OOP concepts such as encapsulation, data hiding, and constructor usage.

2.C++ Programming Proficiency: Through the project, students gain hands-on experience with C++,
understanding how to write and organize code effectively, especially with regard to constructors,
methods, and handling basic input/output operations.

3.Problem-Solving and Logical Thinking: Developing a store management system enhances critical
thinking, as students must break down the problem into smaller tasks

Source Code:
#include <iostream.h>
#include <conio.h>

class Store {
private:
int itemID;
char itemName[30];
float itemPrice;
int itemQuantity;

public:
Store(int id, const char* name, float price, int quantity) : itemID(id), itemPrice(price),
itemQuantity(quantity) {
copyName(name);
}

void copyName(const char* name) {


itemName[0] = name[0];
itemName[1] = name[1];
itemName[2] = name[2];
itemName[3] = name[3];
itemName[4] = name[4];
itemName[5] = name[5];
itemName[6] = name[6];
itemName[7] = name[7];
itemName[8] = name[8];
itemName[9] = name[9];
itemName[10] = name[10];
itemName[11] = name[11];
itemName[12] = name[12];
itemName[13] = name[13];
itemName[14] = name[14];
itemName[15] = name[15];
itemName[16] = name[16];
itemName[17] = name[17];
itemName[18] = name[18];
itemName[19] = name[19];
itemName[20] = name[20];
itemName[21] = name[21];
itemName[22] = name[22];
itemName[23] = name[23];
itemName[24] = name[24];
itemName[25] = name[25];
itemName[26] = name[26];
itemName[27] = name[27];
itemName[28] = name[28];
itemName[29] = name[29];
}

void updateItemDetails(int newQuantity, float newPrice)


{
itemQuantity = newQuantity;
itemPrice = newPrice;
}

void displayItemDetails()
{
cout << "\nItem ID: " << itemID;
cout << "\nItem Name: ";
cout << itemName;
cout << "\nItem Price: " << itemPrice;
cout << "\nItem Quantity: " << itemQuantity;
}

float calculateTotalValue() {
return itemPrice * itemQuantity;
}
};

void main() {
clrscr();
Store item1(101, "Notebook", 45.50, 150);
Store item2(102, "Pen", 10.00, 300);

item1.displayItemDetails();
cout << "\nTotal Value of Item 1: " << item1.calculateTotalValue();

item2.displayItemDetails();
cout << "\nTotal Value of Item 2: " << item2.calculateTotalValue();

item1.updateItemDetails(200, 50.00);
cout << "\n\nAfter updating Item 1:";
item1.displayItemDetails();
cout << "\nTotal Value of Item 1 after update: " << item1.calculateTotalValue();

getch();
}
Output:-

Working principle:

" The working principle of the "Store Management by Using Constructor" system revolves
around object-oriented programming concepts, particularly the use of constructors to initialize
data. When a store item object is created, the constructor is invoked to automatically assign
values such as the item ID, name, price, and quantity. The system then allows the user to
interact with these objects by displaying item details, updating quantities or prices, and
calculating the total value of the items based on the price and quantity”.

Result
" It is a functional and efficient store management system implemented in C++ using object-oriented
programming principles. The system allows for the creation of store items with initial details (item
ID, name, price, and quantity) through the use of constructors.”
For instance, when the program runs, the user will see a list of store items with their details.

Conclusion
" The "Store Management by Using Constructor" highlights the successful implementation of
object-oriented programming (OOP) principles in solving a real-world problem. By utilizing
constructors, the project effectively initializes and manages store item data, ensuring that each
item’s details are captured and displayed accurately. The project demonstrates the practical
application of core OOP concepts like encapsulation and modularity, ensuring that data is
protected and handled through well-defined functions”.
Reference:
1. Object-Oriented Programming Concepts' by John Wiley &

Sons.

2. Store Management by using constructors in C++ -

GeeksforGeeks

3. Programs Using Constructors in C++ - Programiz

Subject Incharge

(Mrs.Jyoti Shinde)

You might also like