Online Shopping Application Content
Online Shopping Application Content
HOSUR-635114
1
ACKNOWLEDGEMENT
I register my sense of gratitude to Mathakondapalli Model
constant help and guidance at each and every stage of this project. His
constructive advice& constant motivation has been the key for the
2
INDEX
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.
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.
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.
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 Number:",self.accountno
print"Account Type:",self.acttype
def getdata(self):
for a in range(n):
10
balance=input("Enter your Balance Amount:")
if ch==1:
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
else:
12
if balance-amt>=1000:
balance=balance-amt
print"AMOUNT WITHDRAWN"
else:
a=account()
a.getdata()
a.display()
#a.deposit()
#a.withdraw()
13
OUTPUTS
14
15
16
CONCLUSION
17
BIBILIOGRAPHY
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