Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago