Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java, using scanner, conditionals, loops, arrays Each in a method, Creates an integer array of n elements. Asks the user for the values of

In Java, using scanner, conditionals, loops, arrays
Each in a method,
Creates an integer array of n elements. Asks the user for the values of n and create the array.
Asks the user for the elements and inserts the values in the array.
Prints the array in reverse (from the last element to the first).
Prints the sum of the elements of the array.
Prints the average of the elements of the array.
Prints the number of elements that are more than or equal to the average value. For
example, There are 4 elements more than the average.
Prints the index of the elements that has value more than or equal to the average.
Prints the minimum value of the array and the index of the minimum value.
Prints the maximum value of the array and the index of the maximum value.
Prints out how many odd numbers there are in the array, those numbers, and the index of those numbers.
Prints out how many even numbers there are in the array, those numbers, and the index of those numbers.

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions