Final Miniproject-1
Final Miniproject-1
Mechanical Engineering
By
K. Venkat(22A85A0321)
L.P. Surya Teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
External Examiner
DECLARATION
We hereby declare that the project report entitled “Currency Converter using python" submitted by
us to Sri Vasavi Engineering College (Autonomous), Tadepalligudem, affiliated to JNTUK Kakinada
in partial fulfilment of the requirement for the award of the degree of B.Tech in Mechanical
Engineering is a record of Bonafide project work carried out by us under the guidance of
MR.M.D.Nagendra Prasad, M-Tech We further declare that the work reported in this project has not
been submitted and will not be submitted, either in part or in full, for the award of any other degree in
this institute or any other institute or University.
Project Associate
K. Venkat(22A85A0321)
L.P. Surya Teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
ACKNOWLEDGEMENT
First and foremost, we sincerely salute to our esteemed institute SRI VASAVI ENGINEERING
COLLEGE, for giving us this golden opportunity to fulfil our warm dream to become an engineer.
Our sincere gratitude to our project guide Mr.M.D. Nagendra Prasad MTech, Department of
Mechanical Engineering, for her timely cooperation and valuable suggestions while carrying out this
project.
We express our sincere thanks and heartful gratitude to Dr.M.V.Ramesh, Professor & Head of the
Department of Computer Science and Engineering, for permitting us to do our project.
We express our sincere thanks and heartful gratitude to Dr. G.V.N.S.R. Ratnakara Rao, Principal,
for providing a favorable environment and supporting us during the development of this project.
Our special thanks to the management and all the teaching and non-teaching staff members,
Department of Computer Science and Engineering, for their support and cooperation in various ways
during our project work. It is our pleasure to acknowledge the help of all those respected individuals.
We would like to express our gratitude to our parents, friends who helped to complete this project.
Project Associate
K.Venkat(22A85A0321)
L.P. Surya Teja(22A85A0322)
M.Ganesh(22A85A0323)
M.Naga Srinivasu(22A85A0324)
2
ABSTRACT
3
CONTENTS
01 . Introduction
02 . Design and implementation
03 . Results
04 . conclusion
05 . Snapshots
06 . Featural scope( reference links )
4
CHAPTER 1
INTRODUCTION
5
1 INTRODUCTION
In a world characterized by global connectivity and international
transactions, the need for efficient currency conversion tools has become
increasingly pronounced. The "Currency Converter Application" emerges as
a versatile and user-friendly solution to address this demand. Developed
using Python, the application seamlessly integrates essential libraries such as
tkinter for the graphical interface and forex-python for real- time currency
exchange rate retrieval.
2 Motivation
2.1 The motivation behind this project is to provide individuals, whether
engaged in international business or planning travel, with a straightforward
and accessible tool for converting monetary values between diverse
currencies. The user interface has been meticulously designed to cater to
users of varying technical backgrounds, featuring intuitive input fields,
dropdown lists for currency selection, and an aesthetically pleasing display
area for conversion results. The incorporation of ttkthemes allows for
enhanced styling, contributing to a visually appealing and user-centric
design.
6
CHAPTER 2
7
1) Requirements: -
The currency conversion project requires how much amount u want to convert from
one currency to other.It is the only basic requirement needed to our project execution
6) Code: -
from PIL import ImageTk,Image
import tkinter as tk
8
from ttkthemes import ThemedTk class
CurrencyConverter:
def _init_(self):
self.c = CurrencyRates()
root.iconbitmap("icon1.ico")
from_currency, to_currency):
= amount * exchange_rate
return converted
converted_amount
self.root.title("Currency Converter")
minimum size
self.style.theme_use("clam") #
9
self.converter =
CurrencyConverter()
# Amount
padx=10, pady=10)
Decreased gap
self.from_currency_label.pack(side=tk.LEFT)
self.from_currency_combobox = ttk.Combobox(from_currency_frame,
state="readonly", height=3,style="NoDropdown.TCombobox")
self.from_currency_combobox.pack(side=tk.LEFT)
Currency:",
10
style="MyLabel.TLabel") self.to_currency_label.pack(side=tk.LEFT)
self.to_currency_combobox =
ttk.Combobox(to_currency_frame,
self.to_currency_combobox.pack(side=tk.LEFT)
# Result
f ont=("Helvetica",12,"bold"), style="MyResult.TLabel")
# Convert Button
self.convert_button = ttk.Button(root,text="Convert",
command=self.perform_conversion, style="MyButton.TButton",="hand2")
self.get_currency_list() self.to_currency_list =
self.get_currency_list()
self.from_currency_listbox=tk.Listbox(from_currency_frame,
self.from_currency_listbox.pack(side=tk.LEFT)
11
command=self.from_currency_listbox.yview)
from_currency_scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.from_currency_listbox.config(yscrollcommand=from_currency_scrollbar.set)
self.from_currency_listbox.insert(tk.END, *self.from_currency_list)
self.from_currency_listbox.bind("<<ListboxSelect>>",
self.update_from_combobox)
self.to_currency_listbox=tk.Listbox(to_currency_frame,
self.to_currency_listbox.pack(side=tk.LEFT)
command=self.to_currency_listbox.yview)
to_currency_scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.to_currency_listbox.config(yscrollcommand=to_currency_scrollbar.set)
self.to_currency_listbox.insert(tk.END, *self.to_currency_list)
self.to_currency_listbox.bind("<<ListboxSelect>>", self.update_to_combobox)
'sticky': 'nswe'})],
'sticky': 'nswe'})],
'sticky': 'nswe'})],
12
'sticky': 'nswe'})])
def get_currency_list(self):
return ["USD", "INR", "IDR", "EUR", "GBP", "JPY", "GBP", "BRL", "THB",
"HKD", "AUD", "CAD", "CHF", "CNY", "SEK", "NZD", "BTC"]
selected_index = self.from_currency_listbox.curselection() if
selected_index:
selected_currency = self.from_currency_listbox.get(selected_index[0])
self.from_currency_combobox.set(selected_currency)
selected_index = self.to_currency_listbox.curselection() if
selected_index:
selected_currency = self.to_currency_listbox.get(selected_index[0])
self.to_currency_combobox.set(selected_currency) def
perform_conversion(self):
try:
amount = float(self.amount_entry.get())
= self.to_currency_combobox.get().upper()
13
converted_amount = self.converter.convert(amount, from_currency,
to_currency)
else:
if (from_currency == "BTC" and to_currency != "BTC"):
converted_amount = BtcConverter().convert_btc_to_cur(amount,
to_currency)
converted_amount = BtcConverter().convert_to_btc(amount,
from_currency)
self.result_label.config(
except ValueError:
= CurrencyConverterApp(root)
root.mainloop()
14
7) Test Your Application:
Run your Python file and test the currency converter application.
15
CHAPTER 3
Result
16
17
CHAPTER 4
CONCLUSION
18
CONCLUSION: -
.
19
CHAPTER 5
SNAPSHOTS
20
STEP 1 :-Click on RUN
21
“Same process for BITCOIN also”
22
CHAPTER 6
1) Tkinter Documentation:-
https://docs.python.org/3/library/tkinter.html
2)Youtube reference:-
https://youtube.com/playlist?list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&si
=_CuYtTi7U88jf1Ec
23