Question: In this exercise, you will write a program to convert money in different currencies. The program takes as input the original currency, the amount, and
In this exercise, you will write a program to convert money in different currencies. The program takes as input the original currency, the amount, and the currency to convert to, and outputs the amount in the new currency with double digit precision For example, given the input EUR 2 USD The output should be 2.46 The valid currencies for this program are Euros, American dollars and Yens. They will be entered using 3 letters identifiers: EUR USD. YEN. Use the following values for the conversions (you should be able to use these values to convert in both directions) 1 EUR 1.23 USD 1 EUR 126.20 YEN TUSD 102 80 YEN . if the user enters the wrong identifier for one of the currencies (that is anything other than EUR USD or YEN). print the message Invalid Input Endail messages with a new line Any attempt to hard code answers will result in a 0 for the exercise 0.000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
