0% found this document useful (0 votes)
57 views8 pages

Python Project Report Format PDF

This project report describes the development of a currency converter application using Python. The application allows users to enter an amount in one currency and select the "from" and "to" currencies. It then uses the forex_python library to retrieve live exchange rates and perform the conversion. The graphical user interface was created using Tkinter and includes labels, dropdown menus, entries, and buttons. The converter provides real-time results and allows clearing entered values. It has potential uses for import/export businesses to help determine profits when dealing with multiple currencies.

Uploaded by

Khusi Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
57 views8 pages

Python Project Report Format PDF

This project report describes the development of a currency converter application using Python. The application allows users to enter an amount in one currency and select the "from" and "to" currencies. It then uses the forex_python library to retrieve live exchange rates and perform the conversion. The graphical user interface was created using Tkinter and includes labels, dropdown menus, entries, and buttons. The converter provides real-time results and allows clearing entered values. It has potential uses for import/export businesses to help determine profits when dealing with multiple currencies.

Uploaded by

Khusi Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 8

Project Report

Title: Currency Converter

BACHELOR OF TECHNOLOGY
Computer science and Engineering

Submitted to
Mr. Avnish Thakur
LOVELY PROFESSIONAL UNIVERSITY
PHAGWARA, PUNJAB

Submitted by:
Name: Ritika and Khusi Yadav
Reg. No. 12215444 and 12210769
Section: KOC01
INTRODUCTION TO PROJECT
Python is a very versatile programming language. Python is being
used in almost each mainstream technology and one can develop literally
any application with it.

A cash converter is a programming code that is intended to change


one money into another all together over to check its relating esteem. The
code is commonly a piece of a site or it frames a portable application and it
depends on current market or bank trade rates.

To change over one cash into another, a client enters a measure of


cash (for example ‘1000’) and picks the cash he/she wishes to check the
money related estimation of (for example ‘us dollar’). from that point
forward, the client chooses one. Or some of the time a few different
monetary forms, he/she might want to see the outcomes in. the application
programming at that point computes and shows the comparing measure of
cash.

Money converters expect to keep up continuous data on current


market or bank trade rate, so the determined outcome changes at
whatever point the estimate of both of the segment monetary standards
does. they do as such by interfacing with an information base of current
cash trade rates. the recurrence at which cash converts update the trade
rate they use differs: yahoo cash converter refreshes its rates each day,
while concert my money < consistently.
DISCUSSION

PREREQUIST

 tkinter: It facilities Graphical User interfaces (GUIs).


 pip install tk

 forex_python: It is a Free Foreign exchange rate and currency


conversion library.
 pip install forex_python

Import the Libraries


Tkinter-It is the inbuilt python module that is used to create GUI
applications. To install Tkinter, go to command prompt and type pip install
tkinter.
Creating a GUI Window and Heading for it:
 root=tk.Tk () This line of code automatically creates a GUI window
with a title bar, close button
 We can change the title using title of root window using
root.title(“”)
 grid ()-The Grid geometry manager puts the widgets in a 2-
dimensional table.
 Label ()-It is used to provide boxes where you can place text or
images.

Currency Converter Class:


 Create Global Variables and initialize the variables.
 Defining a Function to perform real-time conversion from one
currency to another currency.
 Importing forex_python module for getting current conversion
rates.
 get() – Returns the entry’s current text as a string.
 If the amount field is empty. it shows an error !!
 If we didn’t select the from_currency and to_currency, it shows an
error!!
 Converting the amount from string to float.
 It will convert and insert the new amount in amount2_field and
return it.
 If we want to clear the entered values, we use the clear_all()
function.
UI For Python Currency Converter Project:
 For more currencies, you can add their abbreviations in this list.
 geometry() – By using the Geometry method, we can decide the
size, position, and some other attributes of the screen layout we are
going to create.
 bg – To change the background colour.
 fg – To change the foreground colour.
 The padx places a few areas among the button widgets and
between the closeButton and the right border of the root window.
 The pady places a few areas among the button widgets and the
borders of the frame and the borders of the root window.
 Created an “Amount: ” label and using grid_method for placing
 Created a “From Currency: ” label and using grid_method for
placing
 Created a “To Currency: ” label and used grid_method for placing.
 Created a “Converted Currency: ” label and used grid_method for
placing.
Main Function:
 OptionMenu is used to represent some options available to the
user and users can select the required option.
 The Entry widget provides a text box where users can enter any
value or text.
 The Button widget is used to add buttons that will help to redirect
to a function or method which was given.
 root.mainloop() is a method that is used to run the application.
RESULT

The amount to be converted can be written in the amount section, the


user can choose the currency to convert from and to covert to from the
different option in the dropdown menu.

After clicking on the convert button, the currency converter converts


the amount given and the result can be seen in the converted amount
section. The user can use the clear all button to remove all passed
information or to return to the default setting.
SCOPE OF CURRENCY CONVERTER

It Can Be Used In Import/Export Business:


Many business people use this tool in the import/export business to
determine the selling and buying profits of various products. With an online
converter, a trader can identify the difference in making or losing money. All
kinds and types of businesses can use online currency converters for quick
and effective results. As a trader, you can use a converter to get a good
estimate of what your foreign trip would cost while traveling abroad.

You might also like