· 8 years ago · Dec 20, 2017, 08:08 PM
1/**
2 *Takes three arguments:-
3 * claimValue - an int value representing the value claimed by the user in pounds
4 * verificationCode - A String representing the verification code printed on the card
5 * secretKey - a String representing the secret key used to validate the claim
6 *
7 * Iterates over the characters in the Strings adding the position of matches
8 * and subtracting the position of mis-matches to determine the prize value
9 * The claim is valid if the amount claimed is equal to the prize value determined.
10 * Returns a boolean value true if the claim is valid and false otherwise.
11 */
12public Boolean verifyWin(int claimValue, String verificationCode, String secretKey)
13{
14 //create and initialise your local variable prize here
15
16 // insert your loop here
17
18 // and return your value here
19}