Question: Create a java class named Lab3.java. In the java class, implement the following 5 methods. - Take 10 integer numbers from the user and then

Create a java class named Lab3.java. In the java class, implement the following 5 methods.

- Take 10 integer numbers from the user and then print them using for loop [using array]

public static void forwardPrint(int[] arr)

- Print the numbers in reverse order using for loop

public static double average(int[] arr)

- Find the average of the numbers

public static double average(int[] arr)

- Take a digit from the user and return the word version of the digit using switch case

public static String digitToWordSwitch(int num)

- Take a digit from the user and return the word version of the digit using String array

public static String digitToWordArray(int num)

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!