Programmer Date Saurian Class Ability Translate English Saurian Saurian English Public Cla Q37092104

// Programmer:
// Date:
// The Saurian class has the ability to translate English toSaurian
// and Saurian to English

public class Saurian
{
   // data

   // constants used for translating
   // note M = M and m = m so M and m are notneeded
   public static final char[] ENGLISHARR ={‘A’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’I’,’J’,’K’,’L’,’N’,’O’,’P’,’Q’,’R’,’S’,’T’,’U’,’V’,’W’,’X’,’Y’,’Z’,’a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’i’,’j’,’k’,’l’,’n’,’o’,’p’,’q’,’r’,’s’,’t’,’u’,’v’,’w’,’x’,’y’,’z’};
   public static final char[] SAURIANARR ={‘U’,’R’,’S’,’T’,’O’,’V’,’W’,’X’,’A’,’Z’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’J’,’K’,’I’,’L’,’N’,’P’,’O’,’Q’,’u’,’r’,’s’,’t’,’o’,’v’,’w’,’x’,’a’,’z’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’j’,’k’,’i’,’l’,’n’,’p’,’o’,’q’};
   public static final int ARRLENGTH =ENGLISHARR.length;   // should be the same length forENGLISHARR and SAURIANARR

}


Solution


// Programmer:// Date:// The Saurian class has the ability to translate English to Saurian// and Saurian to Englishimport java.util.Scanner;public class Saurian { // data //

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.