Like Tree1Likes
  • 1 Post By grumpy

Guys help me this is my homework

This is a discussion on Guys help me this is my homework within the C++ Programming forums, part of the General Programming Boards category; 1.write a program that will search for the largest value in an array of integer length of 10 2. same ...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    2

    Lightbulb 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

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,620
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    2
    actually i really hate this assignment but i need to pass it to my prof as much as possible

  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    6,208
    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.
    GReaper likes this.
    Right 98% of the time, and don't care about the other 3%.

  5. #5
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,675
    Quote Originally Posted by jerohgega View Post
    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

  6. #6
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,295
    There is nothing for us to do until you post some code or ask a question. It's as simple as that.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey guys can i get some help please?
    By Damienmc++keown in forum C++ Programming
    Replies: 3
    Last Post: 04-20-2011, 06:53 PM
  2. Replies: 1
    Last Post: 04-14-2011, 04:11 AM
  3. Need your help guys :'(
    By Saarah in forum C Programming
    Replies: 24
    Last Post: 09-08-2006, 01:18 AM
  4. What do you guys think about this?
    By RobR in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 06-07-2006, 11:17 AM
  5. OMG!!! You guys!!!
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 04-04-2003, 09:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21