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

Online Shopping Application Content

This document outlines a student project on simulating a bank account using Python. It includes an introduction, project description, requirements, Python concepts used, the program code, sample outputs, and conclusion. The program asks for customer details, allows deposits and withdrawals, calculates interest on deposits, and displays the balance. Working on the project helped students gain experience with Python programming and basic concepts.

Uploaded by

Harish Kumar
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)
257 views

Online Shopping Application Content

This document outlines a student project on simulating a bank account using Python. It includes an introduction, project description, requirements, Python concepts used, the program code, sample outputs, and conclusion. The program asks for customer details, allows deposits and withdrawals, calculates interest on deposits, and displays the balance. Working on the project helped students gain experience with Python programming and basic concepts.

Uploaded by

Harish Kumar
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/ 19

MATHAKONDAPALLI MODEL SCHOOL

HOSUR-635114

BANK ACCOUNT SIMULATION


YEAR: 2018-2019

Names of Group Members:


DurgaShree.N
Tharun Kumar.S
Sachidhanand.J
Bhavish.R
Rishi Krishna.K.V

1
ACKNOWLEDGEMENT
I register my sense of gratitude to Mathakondapalli Model

Schoolfor the opportunity and facilities provided which helped us to

complete this project successfully.

I am also thankful toMr.Sreenivasan, our coordinator for the help

provided to refer to the required amount of sources.

It’s ourpleasure to acknowledge our deep sense of gratitude to our

Computer Science Teacher,Mr.Nagaraj for his valuable support,

constant help and guidance at each and every stage of this project. His

constructive advice& constant motivation has been the key for the

successful completion of this project.

2
INDEX

S.NO CONTENT PAGE NO.

1 Introduction 4
2 Project Description 5
3 Requirements for Project 6
4 Python Concepts Used 7
5 Program 10
6 Outputs 14
7 Conclusion 17
8 Bibliography 18

3
INTRODUCTION
Now-a-days people are very busy in their work that they hardly
take out time to go shopping with their family offline. Fortunately,
thanks to technology for offering convenient methods to shop and make
transactions online.

Online Shopping Application is a new self-service trading


approach of carrying out your manual transactions automatically with
the help of Internet. The online application is an interacting mode where
customers can shop goods lying on their sofa, cross-legged given that
their accounts are penny filled.

While creating account, the customer has to first get himself


approved by the admin through online. After getting access, he may use
the online shopping services. Customers can log on into the system
anytime and utilize the various services.

4
PROJECT DESCRIPTION
The project, ONLINE SHOPPING APPLICATION, is quite a very
basic program of functioning of an online shopping store. But it displays
the fundamental programming operations in online shopping. The
programming query has been laid down in Python Programming
Language.
The program has been constructed using Python concepts, MySQL
database, connectivity between database and Python.
The program asks for the details of the customer (customer’s
name, phone number, address, account number, bank name, balance
amount in customer’s account, number of times transactions to be done
and transaction type i.e., deposit or withdraw).
If depositing is to be done, the years of fixed deposit for the
amount is taken and the balance amount is displayed after analyzing the
depositing amount with time period.
Or else, the withdrawing amount is asked for and the balance after
transaction is displayed. If the withdrawing amount mentioned is greater
than the balance amount in the account, a message warning abou the
incapability of the transaction is displayed.
The output on the screen contains Account Holder’s Name,
Account number. Account type with transaction successful intimation
and the balance amount in the account.
This is the actual fundamental process carried out is transaction
indicating messages.

5
REQUIREMENTS FOR PROJECT
HARDWARE
1. System model HP 202 G1 MT.

2. System typex64-based PC.

3. Processor Intel(R) Pentium(R) CPU G2030 @ 3.00GHz,

3000 MHz, 2 Core(S),2 Logical Processor(s).

4. SMBIOS Version 2.7.

5. Installed physical memory (RAM) 2.00GB.

6. Total physical memory 1.89GB.

7. Available physical memory 1.21GB.

8. Total virtual memory 3.78GB.

9. Available virtual memory 2.83GB.

SOFTWARE
1. Python 2.7

2. OS name

3. OS version

6
PYTHON CONCEPTS USED
1. NUMBER:
Number data type stores numerical values. This data type is
immutable. Numbers are of three different types.
1.1 Integer & long (to store whole numbers i.e. decimal digits
without fraction part)
1.2 Float/ Floating point(to store numbers with fraction parts)
1.3 Complex(to store real and imaginary part)

2. STRING:
String data type is an ordered sequence of letters/characters.
They are enclosed in single quotes (‘ ’) or double quotes (“ ”). The
quotes are not part of string. They only tell the computer about
where the string constant begins and ends. They can have any
character or sign, including space. A string with length 1 represents
a character in python.

3. OPERATORS AND OPERANDS

Operators are special symbols that represent computation like


addition and multiplication. The values that the operator is applied
to are called operands. Operators when applied on operands form
an expression.
Operators are categorized as Arithmetic, Relational, Logical
and Assignment. Following is the partial list of operators.
1. Mathematical/Arithmetic operators: +, -, *, /, %, **, //.
2. Relational operators: <, >=, >, >=, != or <>, ==.
3. Logical operators: or, and, not.
4. Assignment operators: =, +=, -=, *=, %=, **=, //=.
7
3. FUNCTIONS IN PYTHON
A function is named sequence of statements(s) that performs
a computation. It contains line of code(s) that are executed
sequentially from top to bottom by python interpreter. They are
most important building block for any software in python. For
working in script mode, we need to write the python code in
functions and save it in the file having .py extension. Functions can
be categorized as belonging to:

 MODULE FUNCTION
1.1 Import random: It is used to take module
randomly.
1.2 From: It is used to get a specific function in the
code instead of complete file.
 LOOPS
 For loop: It is used to run the program again and
again.
 While loop: It is a conditional loop which is used to
run the program for particular number of times.

8
PYTHON SHELL

9
PROGRAM

class account:

custname=''

accountno=0

acttype=''

balance=0

amt=0

def display(self):

print"Account Holder Name:",self.custname

print"Account Number:",self.accountno

print"Account Type:",self.acttype

def getdata(self):

self.custname=raw_input("Enter Customer Name:")

self.accountno=input("Enter your Account Number:")

self.acttype=raw_input("Enter your Account Type:")

n=input("Enter the number of transactions to be made:")

for a in range(n):

ch=input("Enter ur choice 1.Deposit 2.Withdraw:")

10
balance=input("Enter your Balance Amount:")

if ch==1:

months=input("Enter the number of months for which this amount


should be fixed amount(Minimum number of months is 6:)")

amt=input("Enter the depositing amount:")

self.balance=self.balance+amt

print"AMOUNT DEPOSITED"

if amt>1000:

if months>=6:

interest=0.02

elif months>12:

interest=0.03

else:

interest=0.04

elif amt>5000:

if months>=6:

interest=0.05

elif months>12:

interest=0.06

11
else:

interest=0.07

elif amt>10000:

if months>=6:

interest=0.08

elif months>12:

interest=0.09

else:

interest=0.10

else:

if months>=6:

interest=0.11

elif months>12:

interest=0.12

else:

interest=0.13

print"Now your balance is:",balance+amt*interest

else:

amt=input("Enter the withdrawing amount:")

12
if balance-amt>=1000:

balance=balance-amt

print"AMOUNT WITHDRAWN"

print"Now your balance is:",balance

else:

print"Withdrawing amount is greater than balance amount. So, this


transaction is not possible!"

a=account()

a.getdata()

a.display()

#a.deposit()

#a.withdraw()

13
OUTPUTS

14
15
16
CONCLUSION

This project developed using the python programming language


deals with the simulation of bank account. We could generate the
desired output from the program of bank account simulation.

The very essence of this project is to develop a concrete clarity of


the basic python concepts. Working with this project helped us to gain
the confidence of the capability of developing a program query. We
could also get a standard understanding of python concepts in the
process of making this project.

We could get a strong practical experience of the programming


language. We are thankful for providing us this wonderful platform of
developing into good programmers.

We extend our greetings of gratitude to our mentor who lead us


through all the phases of the efficacious completion of this project.

17
BIBILIOGRAPHY

 Class 11 Computer Science with Python text book,


(Author: SUMITA ARORA)

 Class 12 Computer Science with Python text book,


(Author: SUMITA ARORA)

 Class 12 Computer Science with Python Practical Record,


(Author: SUMITA ARORA)

 https://www.sanfoundry.com/python-problems-solutions/

 https://www.tutorialspoint.com/python_programming_examples/

 https://www.pythoncentral.io/

 https://pythonhosted.org/SimPy/Tutorials/TheBank.html

 http://users.iems.northwestern.edu/~nelsonb/IEMS435/PythonSim.
pdf

 https://www.chegg.com/homework-help/questions-and-
answers/program-python-simulate-bank-transaction-balance-2-
checking-savings-accounts-respectively--q28530625

18
19

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy