Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars

Question:

Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to Chinese RMB. Prompt the user to enter 0 to convert from U.S. dollars to Chinese RMB and 1 to convert from Chinese RMB and U.S. dollars. Prompt the user to enter the amount in U.S. dollars or Chinese RMB to convert it to Chinese RMB or U.S. dollars, respectively. Here are the sample runs:

image

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: