Question: 2. Write a program that prompts the user to enter the exchange rate from currency US dollars to Chinese RMB. Prompt the user to enter

 2. Write a program that prompts the user to enter the

2. Write a program that prompts the user to enter the exchange rate from currency US dollars to Chinese RMB. Prompt the user to enter .0 .to convert from US dollars to Chinese RMB and 1 vice. versa. Prompt the user to enter the amount in US dollars or Chinese RMB to convert it to Chinese RMB or US dollars, respectively. Here are the sample runs: I 1 Enter the exchange rate from dollars to RMB: 6.811 Enter .0 .to convert dollars to RMB and .l vice versa: 09 Enter the dollar amount: -1001 $100.0 .is .681.0 Yuan Enter the exchange rate from dollars to RMB: 6.8.11 Enter .0 .to convert dollars to RMB and 1 vice versa: 11 Enter the RMB amount: 100001 10000.0 Yuan is $1468.431

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!