Question: This must be created in Java: Create a currency converter that converts from USdollars(USD) to Chinese Yuan(RMB). Requirements: The initial prompts will be: Enter the
This must be created in Java:
Create a currency converter that converts from USdollars(USD) to Chinese Yuan(RMB).
Requirements:
The initial prompts will be:
Enter the exchange rate from dollars to RMB:
A numeric, decimal amount will be entered
Enter 0 to convert dollars to RMB or 1 vice versa:
A zero or one will be entered
Based on the user response, the prompt willbe
Enter the dollar amount: OR Enter the RMB amount:
The conversion amount will be calculated and the finaloutput will be
$99 is 99 Yuan OR 99 Yuan is $99
Required output, given exchange rate of 6.81, conversionfactor 0, and 100 dollars
$100.00 is 681.00 Yuan
Notes:
This solution should include methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
