Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python can anyone help me on this, am stuck at this step, completed all the module for currency exchange in folder currency.py, Need to

In python can anyone help me on this, am stuck at this step, completed all the module for currency exchange in folder currency.py, Need to call that function in diff folder exchangeit.py, Attached a screen shot of what I have now. image text in transcribed

currency.py testcurrency.py exchangel.py 41. Impleme. x Tools Education Introcs. currency.py x testcurrency.- x exchangelt.py X 41. Impleme. x X 8. Complete the Project 1 2 User interface for module currency S 4 5 When run as a script, this module prompts the user for two currencies and amount. It prints out the result of converting the first currency to the second. 41. Implement the Application Script Now that you have completed the module currency.py you are ready to work on the script exchangeit.py. This script is just that - a script. It should not contain any function definitions. It should just contain a sequence of Python statements that Ask the the user for a first currency code Ask the the user for a second currency code Ask the the user for an amount (of the first currency) Prints the conversion to the second currency 6 7 8 9 9 10 Author: Date: import currency 11 12 13 14 15 The following example shows you what the script should do when you run it. src = input("3-letter code for original currency: ") dst = input("3-letter code for the new currency: ") amt = input("Amount of the original currency: ") p=float(at) x=currency.exchange (src, dst,P) 16 17 18 print ("You can exchange '+str (amt)+' '+str(src)+' for '+ str(x) + str(dst)+'.') + 19 codio@mike-panther:~/workspaces python3 exchangeit.py 3-letter code for original currency: USD 3-letter code for the new currency: EUR Amount of the original currency: 2.5 You can exchange 2.5 USD for 2.216 EUR. Notice the wording, spacing, and punctuation. In addition, the final print statement rounds the exchange amount to three decimal places. Your implementation must match this. Check the Script You may run this test multiple times. Check It! LAST RUN on 2/5/2021, 8:17:11 PM Xthe print statement does not put the final amount in the right place

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions