Question: Intro to java ( array chapter) please use simple code This assignment was locked Feb 25 at 11:59pm 1. Write a program that accepts 10
This assignment was locked Feb 25 at 11:59pm 1. Write a program that accepts 10 numbers into an array and then finds and displays the average of the numbers. 2. Write a program that accepts 10 values into an integer array and then prints the largest and the smallest values existing in the array sum of all odd numbers in the array. Display the array, and both the sums. program should also display the total number of prime numbers present in the array. Define a method Boolean 3. Write a program that accepts 10 numbers into an array and then finds and displays the sum of all even numbers and 4. Write a program that accepts 10 numbers into an array and then finds and displays all prime numbers in the array. The Primelint n) which checks if a number is prime. 5. Write a program that accepts 10 numbers into an array. Take the input of two numbers Original and Replacement. The program then replaces all occurrences of a Original by Replacement in the array. Display the original and the new array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
