Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

AJEENKYA. D. Y. PATIL SCHOOL OF

ENGINEERING (POLYTECHNIC)

MICRO PROJECT
Academic year: 2021- 2022

TITLE OF THE PROJECT

DEVELOP PYTHON APPLICATION FOR PERFORMING


DEPOSIT,WITHDRAW,BALANCE ENQUIRY (BANK ACCOUNT)

Program: Program code:


Course: Course code:
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICATE
This is to certify that the following students -

Roll No. Name of the students Exam seat number


09 RIYA CHAVAN 284071
10 AZIZ SAYYAD 284072
11 RAJSINGH GAIKWAD 284073
12 HITESH PATHARE 284074

of Diploma in ARTIFICIAL INTELLIGENCE & MACHINE LEARNING of Institute, Ajeenkya.


D. Y. Patil School of Engineering (Polytechnic) Institute Code – 1649, has completed the
Micro-Project satisfactorily in Subject – DATA STRUCTURE USING PYTHON for the
academic year 2022- 2023 as prescribed in the curriculum.

Place: PUNE Date:

Subject Teacher Head of the Department Principal


INDEX

SR.NO. CONTENT PAGE NO.

1 CREATING A BANK ACCOUNT 1

ADDING THE DEPOSIT SECTION 1


2

ADDING THE WITHDRAW SECTION 1


3

DISPLAYING THE BALANCE 1


4

MAIN SOURCE CODE 2


5

6 OUTPUT 2

7 CONTENT USED IN THE SOURCE CODE 3


Creating bank account class with deposit and
withdraw function.
Step 1: Create a class Bank_Acccount. Then define a function using __init__ with
default argument self. This keyword is used in Python to initialize attributes of the
class when an object of that class is created. This step is followed by initializing
the balance as 0.

Step 2: Now we have to create a function deposit such that the amount of
money is taken by input using float and is then added to the balance. Then the
amount deposited will be displayed using the print statement in the next line as
shown in the code below:

Step 3: Just like step 2, we are going to create another function withdraw in which
we are going to take float input for the amount to get withdraw. We are using an if
condition here just to check if we have sufficient
balance available to perform a withdrawal of any amount from the account. If the
balance is not sufficient then our class will show “Insufficient balance”.
Step 4: Now we are going to create our final function which is display function.
It will display the final balance of the account after withdrawal and deposit.

Step 5: As a final step we are going to create an object of our class so that we can
call all the functions with that class to execute our code.
HERE IS THE MAIN CODE (SOURCE CODE)

OUTPUT
CONTENT USED IN THE SOURCE CODE

1] FUNCTION
2] CLASS AND OBJECT
3] INIT FUNCTION

1] FUNCTION:

In Python, a function is a group of related statements that performs a


specific task. Function help break our program into smaller and modular
chunks. As our program grows larger and larger, functions make it more
organized and manageable. Furthermore, it avoids repetition and makes
the code reusable.

SYNTAX:
2] CLASS AND OBJECT:

Python is an object-oriented programming language. Almost everything


in Python is an object, with its properties and methods A Class is like an
object constructor, or a "blueprint" for creating objects.
SYNTAX OF CLASS:

class ClassName:
# Statement-1
.
.
.
# Statement-N

SYNTAX OF OBJECT:

<object-name> = <class-name>(<arguments>)

3] INIT FUNCTION:

The __init__() function is called automatically every time the class is


being used to create a new object.
Ajeenkya. D Y Patil Educational Enterprises Charitable
Trust’sAjeenkya. D. Y. PATIL SCHOOL OF
ENGINEERING, (POLYTECHNIC)
Approved by AICTE NO. West / 1-3847411/2010/ New Dated 13
July 2010/DTE/Affiliated to MSBTE, Mumbai.
Ajeenkya. D Y Patil Knowledge City, Charholi Bk, Via Lohegaon,
Pune –412105

Annexure - I

MICRO-PROJECT PROPOSAL

Title of Micro-project:

DEVELOP PYTHON APPLICATION FOR PERFORMING DEPOSIT, WITHDRAW, BALANCE


ENQUIRY (BANK ACCOUNT)

1.0 Aims/Benefits of the Micro-project – Creating bank account class with deposit
and withdraw function.

2.0 Course Outcomes Addressed – We can write a program to create bank account
using the class and object and by using function.

3.0 Proposed Methodology – Firstly we have created class and then we have used
function, object and init () function in it.

4.0 Action Plan –

Planned Name of
Sr. Planned
Details of Activity Finish responsible Team
No. Start Date
Date Members
Discussion and finalization
1
of topic
Preparation and submission
2
of abstract
3 Literature Review
4 Collection of data
5 Collection of data
Discussion and outline of
6
content
7 Formulation of content
8 Editing of content
9 Editing of content
10 Proof reading of content
11 Compilation of report
12 Compilation of report
13 Presentation
14 Seminar
15 Viva voce
Final submission of micro-
16
project

5.0 Resources Required –

Sr. Name of
Specifications Quantity Remarks
No. Resource/material
1 LAPTOP 8GB RAM, 1
512GB SSD
2 NETWORK Wi-Fi 1

3 NOTES CLASS 1
NOTEBOOK

Names of Team Members with Roll nos.

1. RIYA CHAVAN - (09)


2. AZIZ SAYYAD - (10)
3. RAJSINGH GAIKWAD - (11)
4. HITESH PATHARE - (12)
ASHWINI SHINDE

(Name and Signature of Subject Teacher)


Dr. D Y Patil Educational Enterprises Charitable Trust’s
Dr. D. Y. PATIL SCHOOL OF ENGINEERING,
(POLYTECHNIC)
Approved by AICTE NO. West / 1-3847411/2010/ New Dated 13
July 2010/DTE/Affiliated to MSBTE, Mumbai.
Dr. D Y Patil Knowledge City, Charholi Bk, Via Lohegaon, Pune – 412105

Annexure - II

MICRO-PROJECT REPORT

Title of Micro-project: DEVELOP PYTHON APPLICATION FOR PERFORMING DEPOSIT,


WITHDRAW, BALANCE ENQUIRY (BANK ACCOUNT)

6.0 Rationale –
Creating bank account class with deposit and withdraw function.

7.0 Aim/Benefits of the Micro-project –


Creating bank account class with deposit and withdraw function.

8.0 Course Outcomes Achieved –


We can write a program to create bank account using the class and
object and by using function.

9.0 Literature Review –

In this program we have used function, classes and object. We can


know more about them by using the following reference links.

Function: - https://www.geeksforgeeks.org/python-functions/

Classes and objects: - https://www.geeksforgeeks.org/python-classes-and-objects/


10.0 Actual Methodology Followed –
Here firstly we have created a class and then
we have used function in it and created objects in it and at the end of the program
we have call function one by one.

11.0 Actual Resources Required –

Sr. Name of
Specifications Quantity Remarks
No. Resource/material

1 LAPTOP 8GB RAM, 1


512GB SSD
2 NETWORK Wi-Fi 1

3 NOTES CLASS 1
NOTEBOOK

12.0 Outputs of the Micro-Projects -


13.0 Skill Developed/Learning outcome of this Micro-Project –
Here we came to know to
more about class and objects and about functions too.

14.0 Applications of this Micro-Project –

Used for creating Bank Accounts with the


functions such as deposit, withdraw and balance enquiry.

ASHWINI SHINDE

(Name and Signature of Subject Teacher)

You might also like