Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description: Write a program named exchange.py that will mimic the conversion of an amount of US dollars into a currency of the user's choice. You
Description: Write a program named exchange.py that will mimic the conversion of an amount of US dollars into a currency of the user's choice. You will get the exchange rate for your chosen currency, manually take the closest integer, and input it to your program. The program will work on integer values only. That means this is not going to be an actual currency conversion tool. Input: The user should be prompted for three inputs, using three separate input statements (as in EX00): How many US Dollars do you want to exchange? [ user input, example: 100 ] Enter the name of the currency you are converting dollars to: [ example: yen ] What is the exchange rate? [ example: 114] Output: The input dollar amount, currency type, and amount of the currency that is equivalent to the input number of dollars, with appropriate description. Example: You can exchange 100 U.S. dollars for 11400 yen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started