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
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