MICRO-PROJECT
Develop A Currency Converter Using Python
Submitted- 2023-24
This micro-project work submitted in partial fulfillment of requirements for the award
of diploma in Computer Technology for subject "Programming With
Python(22616)".
Computer Engineering
Maharashtra State Board of Technical Education, Mumbai
UNDER THE GUIDANCE OF
Prof.S.K.Kharkate
Lect. In Computer Technology
SUBMITTED BY
Sr
no. Roll no. Name of Student Enrollment no.
1. 02 Ayush Rajendra Meshram 2101210413
DEPARTMENT OF COMPUTER ENGINEERING GOVERNMENT POLYTECHNIC,
BRAMHAPURI DIST CHANDRAPUR
DEPARTMENT OF COMPUTER ENGINEERING
Certificate
This is to certify that the following student of this institute have carried out this micro-
project in work “Develop Currency Converter Using Python” Under the guidance of
Prof. S. K. Kharkate Lect. in the Department of Computer Engineering during the
session 2023-2024 This work has been in the partial fulfillment of the award for
Diploma in Computer Engineering from Maharashtra State Board of Technical
Education, Mumbai.
SUBMITTED BY
Sr no.
Roll no. Name of Student Enrollment no.
1. 02 Ayush Rajendra Meshram 2101210413
Project Guide Head of department Principal
Prof. S. K. Kharkate Prof. S. K. Kharkate Dr. R. L. Wankhade
Part-A
1.0 Aim of micro project:-
Develop Currency Converter Using Python
2.0 Brief introduction:
A currency converter is a tool or application and process of exchanging one
country’s currency for another at a specific exchange rate. This conversion is
based on the current exchange rates between the two currencies. Currency
converters are widely used for various purposes, including international trade,
travel, and financial transactions.
3.0 course outcome:
Display message on screen using Python script on IDE.
Develop python program to demonstrate use of Operators
4.0 Literature review:
What is python?
Python is a high-level, interpreted, interactive and object-oriented programming
language. Today python is the trendiest programming language. There are several
reason for why python programming language is a preferable choice of the
programmers/developers over other popular programming languages like c++, java,
and so on. It was created by Guido van Rossum and first released in 1991.
https://youtu.be/B7qB62Msems?si=xbaqyVN5Brmfb0Px
What is nested if-else statement in python?
A nested if-else statement in Python refers to the situation where one if-else
statement is placed inside another. This is useful when you need to evaluate
multiple conditions in a more complex manner.
https://youtu.be/9xiFcK3MRYA?si=8TgcwjjT8whkpT0F
5.0 Proposed methodology:
Algorithm:
Step 1: User Input
The program begins by prompting the user to input the amount to be converted
(amount), the source currency code (Currency1), and the currency code
(currency2).
Step 2: Currency Conversion
The program uses a series of if-elif statements to check the combination of
currency1 and currency2 currencies and calculates the converted amount based on
the specified exchange rates.
Step 3: Output
The program prints the result of the currency conversion based on the selected if-
elif branch. If none of the specified conditions match, it prints an error message
indicating that the user should enter valid information.
Step 4: Handling Invalid Input
The else statement serves as a catch-all for cases where none of the specified
currency conversion conditions are met. It prints an error message suggesting that
the user should enter valid information.
Step 5: Program End
The program execution ends after printing the result or error message. These steps
outline the process from the start to the end of the program, covering user input,
currency conversion, output, and handling invalid input
6.0Action plan:
Sr. `Detail of Activity Start Finish Name of student
no. Date Date
1 Search for topic
Information search
2 and resource
collected
3 Discuss with
project guide
4 Implement part-A
Ayush Rajendra
Meshram
5 Implement Coding
6 Implement part-B
7 Submission of final
report
7.0Resource required:
Sr. Name of
no. resource/material specification Quantity Purpose
1. Laptop Asus 1 To make micro
project.
2. Book Python 1 To get
information- on
3. software Visual Studio 1 To develop the
program
Part :-B
“ Develop Currency Converter Using Python”
1.0 Rationale:-
A currency converter is a tool or application and process of exchanging one country’s
currency for another at a specific exchange rate. This conversion is based on the
current exchange rates between the two currencies. Currency converters are widely
used for various purposes, including international trade, travel, and financial
transactions.
2.0 Aim of Micro-project:
Develop Currency Converter Using Python
3.0 Course outcomes Achieved:
Display message on screen using Python script on IDE.
Develop python program to demonstrate use of Operators
4.0 Literature review:
What is python?
Python is a high-level, interpreted, interactive and object-oriented programming language.
Today python is the trendiest programming language. There are several reason for why
python programming language is a preferable choice of the programmers/developers over
other popular programming languages like c++, java, and so on. It was created by Guido
van Rossum and first released in 1991.
What is nested if-else statement in python?
A nested if-else statement in Python refers to the situation where one if-else statement is
placed inside another. This is useful when you need to evaluate multiple conditions in a
more complex manner.
5.0 Actual Methodology followed:
Step 1: User Input
The program begins by prompting the user to input the amount to be converted
(amount), the source currency code (Currency1), and the currency code (currency2).
Step 2: Currency Conversion
The program uses a series of if-elif statements to check the combination of currency1
and currency2 and calculates the converted amount based on the specified exchange
rates.
Step 3: Output
The program prints the result of the currency conversion based on the selected if-elif
branch. If none of the specified conditions match, it prints an error message
indicating that the user should enter valid information.
Step 4: Handling Invalid Input
The else statement serves as a catch-all for cases where none of the specified
currency conversion conditions are met. It prints an error message suggesting that the
user should enter valid information.
Step 5: Program End
The program execution ends after printing the result or error message. These steps
outline the process from the start to the end of the program, covering user input,
currency conversion, output, and handling invalid input
6.0 Resource required:
Sr. Name of
no. resource/material specification Quantity Purpose
1. Laptop Asus 1 To make micro
project.
2. Book Python 1 To get
information- on
3. software Visual Studio 1 To develop the
program
7.0 Skill Developed:
1. Input Handling: Managing user input, ensuring the program can handle different
data types and potential errors.
2. Mathematical Operations: Performing currency conversion calculations based on
predefined exchange rates.
3. String Manipulation: Handling and comparing strings (currency codes) input by
the user.
4. Error Handling: Implementing a mechanism to handle cases where invalid inputs
are provided.
5. Debugging: Identifying and resolving any issues or errors in the code.
6. Testing: Verifying that the program functions correctly under various scenarios
and input combinations.
8.0.Program:-
amount = int(input("Enter The Amount To Convert = "))
currency1 = input("Select the currency from which to convert = ").lower()
currency2 = input("Select the currency to convert to = ").lower()
if currency1 == "usd" and currency2 == "eur":
converted = amount * 0.92
print(amount, "USD is equal to", converted, "EUR")
elif currency1 == "eur" and currency2 == "usd":
converted = amount * 1.08
print(amount, "EUR is equal to", converted, "USD")
elif currency1 == "inr" and currency2 == "usd":
converted = amount * 0.012
print(amount, "INR is equal to", converted, "USD")
elif currency1 == "inr" and currency2 == "eur":
converted = amount * 0.011
print(amount, "INR is equal to", converted, "EUR")
elif currency1 == "usd" and currency2 == "inr":
converted = amount * 83.00
print(amount, "USD is equal to", converted, "INR")
elif currency1 == "eur" and currency2 == "inr":
converted = amount * 89.69
print(amount, "EUR is equal to", converted, "INR")
else:
print("Enter valid information")
9.0. Output :-
1.
2.
3.
10.0 Application:-
1. Travel & Tourism
2. International Trade & Business
3. Economic & Financial Analysis
11.0 Reference:-
1. What is python?
https://youtu.be/zoHB5B9LdrY?si=pglk45epxwKz7hSX
2. What is nested if-else statement in python?
https://youtu.be/Onoa2T982Xo?si=0vn-97sqNsQNCHF2
12.0 Conclusion:-
This program efficiently facilitates currency conversion based on user input. It prompts
the user to input the amount to convert, the source currency code, and the target
currency code. With the rise of digital platforms and real-time exchange rate APIs,
currency conversion has become more accessible and efficient. However, fluctuations
in exchange rates can impact financial decisions, making it important to stay updated
with current rates. Overall, currency conversion is essential for economic growth,
global connectivity, and seamless financial transactions.