Question
JAVA The final challenge involves a series of integers inscribed on the outside of a treasure chest: challenge4 = [323, 331, 323, 336, 319, 330,
JAVA
The final challenge involves a series of integers inscribed on the outside of a treasure chest:
challenge4 = [323, 331, 323, 336, 319, 330, 322]
Also inscribed on the treasure chest is the String "treasurelieswithinthischest"
To solve this problem you must do the following:
The list of integers contains an encrypted password that will open the treasure chest.
The key to decrypting this password can be found in the String "treasurelieswithinthischest" Use each letter of the String "treasurelieswithinthischest" and extract its value, where a=0, b=1, c=2, etc.
Construct an integer that represents the sum of all letters in the String.
Next, subtract this number from each value in the list of numbers above.
Convert the resulting values to characters where a=0, b=1, c=2, etc.
Please provide CODE
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