Write a program that has the following menu of options as listed below. When a user chooses a particular option, your program should prompt the user for the required information (in main) to complete the task, and then pass it to a method.

//1. Let’s Draw Trees!
//2. Reverse words
//3. Print Vertical
//4. Add digits
//5. Furbish Translator

1. Tree drawing program - You will need to ask the user for the number of segments and the height of each segment.

2. Your reverse word method, should print a given word in reverse. For example, if the user enters “hello”, this method should print it back to the screen as “0lleh”.

3. The Print Vertical Method - For example, if the user enters “HELLO”, this method should print it back to the screen as:


4. Write a method that computes the sum of the digits in an integer. For example SumDigits(234) would return and print the value for 2 + 3 + 4 = 9. You only need to print the sum, and not all of the original digits.

5. Using the Furbish online Dictionary, create a method that accepts a word in furbish and returns the English translation. (use a value returning method) The translation should be a returned value to main, which then prints it for the user, do not print the result from within the method. Use at least 10 words.
So for example if the user type in “A-loh” the program should print:

You entered A-loh which means Light in Furbish.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public static void main(String[] args) {
       String [] furbish = {"Ay-ay","Ah-may","A-loh","Aloh / may-lah","A-tay","Boh-bay","Boo","Dah","Doo?","Doo-ay","Doo-moh","E-day","Kah","Kkoh-koh","Koo-dye","Kah/boo/koo-doh","Lee-koo","Loo-loo","May-may","May-lah","May-tah","Mee-mee","Nah-Bah","Nee-tye","Noh-lah","Noo-loo","O-kay","Toh-dye","Toh-loo","U-nye","U-tye","Wah!","Way-loh","Wee-tee"};

       String [] english = {"Look/See","Pet","Light","Cloud","Hungrey/Eat","Worried","No","Big","What?","Fun","Please feed me","Good","Me","Again","Health","I'm not healthy","Sound","Joke","Love","Hug","Kiss","Very","Down","Tickle","Dance","Happy","OK","Done","Like","You","Up","Yipeee!!","Sleep","Sing"};
       Scanner console = new Scanner(;
       int selection = 1;
       while (selection != 6) {            
            selection = getSelection(console);
                case 1:
                case 2:
                case 3:
                case 4:
$45.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats