-Write a program that creates an integer array of size 5, reads the values from the user...
Question:
-Write a program that creates an integer array of size 5, reads the values from the user and stores them in the array. After you store the elements in the array, find the sum, min, max and average values and display them.
2-Write a program that defines an array of 5 integers and initializes it using user’s input. Ask the user to enter the target. Find the indices of all the elements greater than the target entered by the user.
3-Write a program to prints the sum of all elements with an even index and all elements with an odd index of the following integer array. int c[10] ={5,6,4,9,11,14,8,2,3,1} .Use for loop and if statement.
4-Write a function that takes an array of integer values, array size and an integer parameter called item as parameters. The function return number of times item appears in the array. Test the function with a suitable program.
5-Write function concat that takes two source arrays of characters and a destination array of characters. The function should concatenate two source arrays and store in the destination array.
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang