Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1: take 10 integer numbers from the user and then print them using for loop (using array] public static void forwardprint(int[] arr) Problem 2:
Problem 1: take 10 integer numbers from the user and then print them using for loop (using array] public static void forwardprint(int[] arr) Problem 2: print the numbers in reverse order using for loop public static void reversePrint(int[] arr) Problem 3: find the average of the numbers public static double average(int[] arr) Problem 4: take a digit from the user and return the word version of the digit using switch case public static String digitToWordSwitch(int num) Problem 5: take a digit from the user and return the word version of the digit using String array public static String digitToWordArray(int num) int[] numbers = { 5, 6, 7, 3, 4, 2, 1, 33, 44, 5, 8, 8 }; // creating an array forwardprint(numbers); //this should print the numbers array in normal order reversePrint(numbers);//this should print the numbers array in reverse order double avg = average (numbers); //average(numbers) should return the average of numbers array System.out.println("average = "+avg); int digit = ; // take an integer number from the user and store that in digit System.out.println(digitToWordArray(digit)); //printing the digit in word System.out.println(digitToWordSwitch(digit)); //printing the digit in word
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started