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

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!