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

-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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the code for each of the five programs you requested Program 1 Create an integer array of size ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!