about-text

SoftOSet is the most remarkable programming site. SoftOSet provides the fresh conceptual and professional programs, articles, books, and other interesting and technical writings. SoftOSet is the most reliable programming site to learn the programs and the basics of the popular programming languages. SoftOSet is the hub of the informative and research based articles.


Currency Converter Program in Python





The most powerful language today is python. Every beginner in programming today is learning Python as its first programming language. Python is such a powerful tool for machine learning and Artificial Intelligence.

And now we can say that;

What we can not do with Python?

We can do with Python more and more things.

But 

Here we are going to make a currency converter program in Python. You probably have developed the currency converter program in C++ or C language if you are not a beginner. If you are a beginner, don't you worry. 


Currency Converter Program in Java


In this article, we will teach you how you can make a program of currency conversion in python from scratch.

Algorithm of Python Currency Conversion Program

Algorithm for currency converter program in python is as under.

Step 1: Take input from user in dollars.
Step 2: Mention Exchange Rate of Other currencies.
Step 3: Multiply the number of dollars with Exchange rate of other currencies.
Step 4:Display the converted currencies on the screen.

Below is the source code for the python program of currency conversion.

Source Code For Currency Converter Program in Python

Below is the source code for the python program of currency conversion.


print("Enter the  Dollars For Conversion : ")

dollars=float(input())

bp=(1/1.487);

frnc=(1/0.172);

dutchmark=(1/0.584);

yen=(1/0.00955);

print("British Pound =",bp*dollars)

print("French Franc=",frnc*dollars)

print("German Dutch =",dutchmark*dollars)

print("Japaani Yen =",yen*dollars)



Output For Currency Converter Program in Python

At the end, when we have run the above currency converter program of python in Pycharm. We have seen the following behavior of program. On the running the program as the user to enter the dollars. User entered the dollars and program show the other converted currencies as follow.

     


Thank You


SoftOSet

Reset Your Technology

Post a Comment

Feel Free to Comment Us

Previous Post Next Post

Recents