Brookhaven College Day of Week Java Program Project This is two separated program. I have attached.Here is the link for “Currency Code Lookup”:https://s3.a
Brookhaven College Day of Week Java Program Project This is two separated program. I have attached.Here is the link for “Currency Code Lookup”:https://s3.amazonaws.com/blackboard.learn.xythos.prod/584b1d8497c84/99606762?response-cache-control=private%2C%20max-age%3D21600&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27CheckCurrencyCode.java&response-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200720T000000Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIL7WQYDOOHAZJGWQ%2F20200720%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=8a00e080bc40d009c9c6300c7647cb3beb3d3be09bebddc0774c98ad1794e0f5 Review the section “Array Traversal”
Using the provided Java program, complete the code to do the following:
1.
2.
Act on the all the TODO indicators in the program.
Modify the method findMyCurrency() to do the following:
a. Using a loop, prompt for a currency to find.
Inside the loop that manages the input, call the lookUpCurrency() method can pass the
inputted currency code value.
The lookUpCurrency() method needs to loop through the list of currencies and
compare the passed currency code with the code in the array. If found, return true – otherwise
return false
Look at the showCurrencies() method for a example of how to loop for each element.
In the findMyCurrency() method
If found – Display the currency code and index where it was found – i.e. “FJD
found at index 0”.
If not found – Display “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
Currency code USD found at index ___
Retry Y/N ? Y
Enter a Currency Code to Find: ZZZ
Currency code NOT found!
Retry Y/N ? N
Create a Java Program/Class named DayOfWeek that will display the Day of Week names using
an array.
1. Create an array of string named DAY_OF_WEEKS and assign it the values “Sunday” through
“Saturday”. All 7 days need to be in the array with the first element being “Sunday”, then
“Monday”, “Tuesday”, etc.
2. Using a loop, prompt me to enter an int variable of 1-7 to display the day of week. Once you
have the value, the program needs to adjust the given in to align with the array index and then
confirm that the variable is in the range of 0-6. If it is not, display “Invalid Entry”. If it is in
range, display the string the matches the given entry. Then prompt to continue.
Enter the day of the Week: 1
The day of the week is Sunday.
Try again (Y/N): Y
Enter the day of the Week : 2
The day of the week is Monday.
Try again (Y/N): Y
Enter the day of the Week : 8
Invalid Entry
Try again (Y/N): N
Purchase answer to see full
attachment
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.