Currency Code Look Up Java

Currency Code Look Up Java

 

Review the section 8.6 – Array traversal

Using the provided Java program, complete the code to do the following:

  1. The changes to the methods are listed in the comments above the method names. 
  2. Modify the method findMyCurrency() to do the following:

         a. Use a do-while loop

         b. Prompt for a currency to find. 

         c. Inside this loop, call the lookUpCurrency() method can pass the inputed currency code value.

         d. The lookUpCurrency() method needs to loop through the list of currencies and compare the passed currency code with the currency code in the array. Display the results as in the example below.

              Look at the showCurrencies() method for a example of how to loop for each element.

              In the lookUpMyCurrency() method

                             If found – Display the currency code and index where it was found – i.e. “FJD found at index 0”.

                             If not found – Display the currency code and ” Currency Code NOT found!”. 

            b. Prompt with “Retry Y/N ?” to try again. If I select N, then exit the loop.   Allow any other char to restart the loop and prompt for a currency to find.

Because you are comparing strings, remember to use the .equals method – not ==.

Enter a Currency Code to Find: USD

USD Currency code found at index _##__

Retry Y/N ? Y

Enter a Currency Code to Find: ZZZ

ZZZ Currency code NOT found!

Retry Y/N ? N

Our Essay Writing Service Features

Qualified Writers
Looming deadline? Get your paper done in 6 hours or less. Message via chat and we'll get onto it.
Anonymity
We care about the privacy of our clients and will never share your personal information with any third parties or persons.
Free Turnitin Report
A plagiarism report from Turnitin can be attached to your order to ensure your paper's originality.
Safe Payments
The further the deadline or the more pages you order, the lower the price! Affordability is in our DNA.
No Hidden Charges
We offer the lowest prices per page in the industry, with an average of $7 per page
24/7/365 Support
You can contact us any time of day and night with any questions; we'll always be happy to help you out.
$15.99 Plagiarism report
$15.99 Plagiarism report
$15.99 Plagiarism report
$15.99 Plagiarism report
$3.99 Outline
$21.99 Unlimited Revisions
Get all these features for $65.77 FREE
Do My Paper

Frequently Asked Questions About Our Essay Writing Service

Academic Paper Writing Service

Our essay writers will gladly help you with:

Essay
Business Plan
Presentation or Speech
Admission Essay
Case Study
Reflective Writing
Annotated Bibliography
Creative Writing
Report
Term Paper
Article Review
Critical Thinking / Review
Research Paper
Thesis / Dissertation
Book / Movie Review
Book Reviews
Literature Review
Research Proposal
Editing and proofreading
Other
Find Your Writer

Latest Feedback From Our Customers

Customer ID:  # 678224
Research Paper
Highly knowledgeable expert, reasonable price. Great at explaining hard concerts!
Writer: Raymond B.
08/10/2021
Customer ID: # 619634
Essay (any type)
Helped me with bear and bull markets right before my exam! Fast teacher. Would work with Grace again.
Writer: Lilian G.
08/10/2021
Customer ID: # 519731
Research Paper
If you are scanning reviews trying to find a great tutoring service, then scan no more. This service elite!
Writer: Grace P.
08/10/2021
Customer ID: #499222
Essay (any type)
This writer is great, finished very fast and the essay was perfect. Writer goes out of her way to meet your assignment needs!
Writer: Amanda B.
08/10/2021
Place an Order

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
×

Powered by essayworldwide.com

× WhatsApp Us