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:

Code giving out weird answer (Java) So far I have the following

code: Main file: I keep getting this formatting problem (personally I think

Main file:

this is an issue in Main file): Second to last line (Iwould have it say 120.0 CAD = ...GBP, but instead it's printing

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

a wrong value in USD), it only happens when I convert from

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:

non-usd currency to non-usd currency And also this error: Program is not

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

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!