# Guys help me this is my homework

• 09-24-2012
jerohgega
Guys help me this is my homework
1.write a program that will search for the largest value in an array of integer length of 10
2. same as no. 1 kaso find the smallest value
3.write a program that will take the sum of all the array elements greater than 80 in anny array of 10 elements completely filled by the user
4.write a program that will print the odd positioned elements in any array of 10 integers
5. write a program that will print the even positioned elements in an array of 10 integers.
6.write a program that will arrange the elements of a 10 integer array in 10 ascending order
7.write a program that will arrange the elements of a 10 integer array in descending order
8.write a program that will compute and display the average of a 20 element array whose values are inputted by the user.
9.write a program that will output all the even number found in an array of 20 integers. display also the sum of the values found.
10.write a program that will out put all the odd numbers found in an array of 20 integers. display also the sum of the values found
• 09-24-2012
GReaper
• 09-24-2012
jerohgega
actually i really hate this assignment but i need to pass it to my prof as much as possible
• 09-24-2012
grumpy
Either GReaper is too subtle, or you're too unobservant to grasp his message.

This site has a homework policy, at this link. Short summary: You have to do your own homework. We'll help you with particular problems, if there is evidence you have made a genuine effort. In your case, there is no such evidence.
• 09-24-2012
std10093
Quote:

Originally Posted by jerohgega
actually i really hate this assignment but i need to pass it to my prof as much as possible

come don't be negative :)
Declare an array of integers,then create a variable max which holds the first value of the element.Then compare max with the second value of the array (array[1]).If max<array[1],then max=array[1] and so on..

The users did not said anything wrong and sure are not in a mood to make you not solve your problem :)
• 09-25-2012
iMalc
There is nothing for us to do until you post some code or ask a question. It's as simple as that.