Question: Code giving out weird answer (Java) So far I have the following code: Main file: I keep getting this formatting problem (personally I think this
Code giving out weird answer (Java)
So far I have the following code:


Main file:


I keep getting this formatting problem (personally I think this is an issue in Main file):

Second to last line (I would have it say 120.0 CAD = ...GBP, but instead it's printing a wrong value in USD), it only happens when I convert from non-usd currency to non-usd currency
And also this error:

Program is not finishing like told to.
How do I fix this (preferably I would prefer a quick fix and not change the whole program), I don't think a quick fix should be too hard because it looks like a formatting issue in the Main file to me. Anything I missed?
Finished (F) or do you have another operation (Y)? Please enter the currency you want to convert (ex: USD, CAD, GBP)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
