Making Of Mortgage EMI Calculator In EXE File By Using Python
1. BANSILAL RAMNATH AGARWAL CHARITABLE TRUST'S
VISHWAKARMA INSTITUTE OF TECHNOLOGY
Making Of Mortgage EMI Calculator
In EXE File By Using Python
SOFTWARE DEVELOPMENT PROJECT
BY RUCHA SATISH DHAVALE
2. Content
✔ Basics
✔ Why Python?
✔ My Python Coding
✔ What Is Debugging?
✔ Steps To Create An Executable From Python Script Using
Py-installer
✔ Prospective Aspects
✔ Conclusion
✔ References
2
3. BASICS
What is mortgage EMI?
What is history of it?
Where it use?
What is formula for that?
M = L[I(1+I)N] / [(1+I)N-1]
3
4. Why python ?
4
✔ Presence of Third Party Modules
✔ Extensive Support Libraries
✔ Open Source and Community Development
✔ Learning Ease and Support Available
✔ User-friendly Data Structures
✔ Productivity and Speed
5. 5
My python
coding
__author__ = 'RUCHA'# This program calculates monthly repayments on an interest rate loan/mortgage loanAmount
= input("How much do you want to borrow? n") interestRate = input("What is the interest rate on your loan? n")
repaymentLength = input("How many years to repay your loan? n") #converting the string input variables to float
loanAmount = float(loanAmount) interestRate = float(interestRate)repaymentLength =
float(repaymentLength)#working out the interest rate to a decimal number interestCalculation = interestRate / 100
print(interestRate) print(interestCalculation) #working out the number of payments over the course of the loan
period. numberOfPayments = repaymentLength*12 #Formula#M = L[i(1+i)n] / [(1+i)n-1]# * M = Monthly Payment
(what were trying to find out) # * L = Loan Amount (loanAmount)# * I = Interest Rate (for an interest rate of 5%, i =
0.05 (interestCalculation) # * N = Number of Payments (repaymentLength) monthlyRepaymentCost = loanAmount *
interestCalculation * (1+interestCalculation) *numberOfPayments / ((1+interestCalculation) * numberOfPayments -
1)#THIS IS FROM ANOTHER BIT OF CODE THAT IS SUPPOSE TO BE RIGHT BUTISNT---# repaymentCost
= loanAmount * interestRate * (1+ interestRate) * numberOfPayments / ((1+ interestRate) * numberOfPayments
-1)#working out the total cost of the repayment over the full term of the loantotalCharge = (monthlyRepaymentCost
* numberOfPayments) - loanAmountprint("You want to borrow £" + str(loanAmount) + " over " +
str(repaymentLength) + "years, with an interest rate of " + str(interestRate) + "%!")print("Your monthly repayment
will be £" + str(monthlyRepaymentCost))print("Your monthly repayment will be £%.2f " %
monthlyRepaymentCost)print("The total charge on this loan will be £%.2f !" % totalCharge)
6. 2 3
1
What is debugging?
It is the process of detecting and removing of existing and potential errors (also called as
bugs) in a software code that can cause it to behave unexpectedly or crash.
Reproduce the problem &
Describe the bug. Try to get as
much input from the user to get
the exact reason.
Capture the program snapshot
when the bug appears. Try to get
all the variable values and states
of the program at that time.
Analyse the snapshot based on the
state and action. Based on that try
to find the cause of the bug.
6
7. What’s an .exe?
7
✔ An .exe is a very common file type. The .exe file
extension is short for “executable.” These files
are most commonly used on Windows®
computers to install or run software applications.
8. Steps to Create an Executable from Python Script using Pyinstaller
Add Python to Windows Path
Open the Windows
Command Prompt
Install the Pyinstaller
Package
Create the Executable using
Pyinstaller
Save your Python Script
8
9. Prospective Aspects
❑ if we give proper User interface to
this EXE. File then it will become a
windows application.
❑ also if we convert previous program
into APK. File & by giving user
interface to same then it will also
become mobile application
9
10. Conclusion
Using a debugger
can be tricky and
time consuming, but
it’s the most reliable
way to find bugs in
your code
Exe files is a runtime
system, which
implements runtime
language features
and interactions with
the operating system.
10
Python is compatible
with all popular
operating systems and
platforms. Hence this
language can
be universally
accepted by all
programmers.