Apologies to all but the solution I sent with the last Problem of the Week was a solution to an earlier version of the problem where the player was given a certain number of points to complete the task. At the end of that program, the player was to print "yes" if it was possible to make the transformation with the given points and "no" if it was not. I felt that adding this extra feature was just extra work that didn't really test anything new so I removed it and had the player just print the lowest number of points needed.
This is the updated solution.
Solution (JAVA):
=======================================
import java.util.Scanner;
public class Main {
public static int letterDifference(char letter1, char letter2)
{
int difference = Math.abs(letter1-letter2);
if(difference > 13)
difference = 26 - difference;
return difference;
}
public static void main (String[] args)
{
Scanner input = new Scanner(System.in);