Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

Kendriya Vidyalaya

Andrews Ganj

Name : Saksham Tiwari


Class : 11th A
Roll No. : 22
Computer Science Project
Loan and deposit Interest
Calculator

Guided by:
Mrs. Swati Saxena
Done by: -
Saksham Tiwari

CONTENT
1.            Certificate
2.            Acknowledgement
3.            Requirements
4.            General Description 5.           
Packages imported & its Purposes
6.            Functions & their Purpose
7.            Flow Chart
8.            Source code
9.            Output
10.          Limitations
11.          Bibliography

Certificate
  This is certifying that “Saksham
Tiwari” of class XI has successfully
completed his “Computer science
practical Report file”. 
  
During academic session 2020-2021
as per the guidelines issued by
CBSE.

Teacher’s Signature Examiner Signature

Date:

Acknowledgement
I wish to express my sincere thanks to Dr. Raj Kumar Sharma,
Principal, Kendriya Vidyalaya Andrews Ganj, for guiding me to
cause the successful outcome of this project work.
I wish to express my deep & profound sense of gratitude to our
guide teacher Mrs. Swati Saxena, For her expert help & valuable
guidance, comments, and suggestions.

I also place on record, our sincere gratitude to one and all


who directly or indirectly have lent their helping hand in
this venture.

Requirements
Hardware
● Printer to print the project
report.
● Compact Disc.
● Ram 2 GB
● Hard Disk 512 GB

Software
● Operating System Windows 10
● Python Compiler for Execution of
Program.
● MS Word for Report Presentation.
General description
As the title of the project suggests, this program
helps us to find the Loan and Deposit Interests.
This program is a simple one-time running
program and asks input from the user at several
stages.

To find the interest on the money deposited or


loan borrowed the user must enter the Principal
Amount, Interest rate and Time period.
Some User Defined functions are used in the
program to display welcome message when
program executes and thank you message when
it terminates.

Functions and their


purpose
●User Defined Functions

1. Compound(): To Find the


compound interest when Principal ,
rate, Time and cycles of interest are
given.

2. Interest(): To find difference


between two entered arguments and
print the statement “Interest on the
entered sum is”, and difference.
3. End(): to print Exit message when Program
Ends.

●System Defined Functions


1. print() : To print a string.

2. def() : To define a function.


Flowchart
SoURCE CODE
print('''Welcome , What do you want to know:
Choose from below''')
choice1=int(input('''Press 1 to Find Interest on Deposits
Press 2 to Find Interest on Loan'''))
def End():
return print('Program Ended Due To Invalid Choice')
def Interest(x,y):
print('Interest on Entered sum is ',x-y)
return print('Amount at the end of specified time is ',x)

def Compound(a,b,c,d):
C=a*(1+(b/100))**(c*d)
return C
if choice1==1:
P=int(input('Enter the Principal Amount : '))
R=int(input('Enter the Interest Rate (in%) : '))
T=int(input('Enter the Time Period (in years) : '))
N=int(input('Enter the no. of cycles in 1 year (yearly=1 , half yearly=2
, quaterly=4) : '))
choice2=int(input('''Press 1 for Simple Interest,
Press 2 for Compound Interest
'''))
if choice2==1:
S=P+((P*R*T)/100)
Interest(S,P)
elif choice2==2:
C=Compound(P,R,T,N)
Interest(C,P)
else:
End()
if choice1==2:
P=int(input('Enter the Principal Amount : '))
T=int(input('Enter the Time Period (in years) : '))
N=int(input('''Enter the no. of cycles in 1 year (yearly=1 , half
yearly=2 , quaterly=4)
'''))
if P<=100000:
R=6
L=Compound(P,R,T,N)
Interest(L,P)
elif P>100000 and P<=500000:
R=4.5
L=Compound(P,R,T,N)
Interest(L,P)
elif P>500000:
R=3
L=Compound(P,R,T,N)
Interest(L,P)
else:
End()
print('ThankYou Program Has Ended')
output
Limitations
This program has the following limitations :
 It offers only one Languages.
 It calculates Loan interest on pre set Rates.
 It has no GUI.
 It cannot store data.
Bibliography
 Sumita Arora Class Xi Computer
Science with Python.

 Python4csip.com

 Visual paradigm online

You might also like