468,248 Members | 1,528 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,248 developers. It's quick & easy.

New to C/C++ programming I have an ARRAY question. any Help?

3
Enter into array, 8 marks, then
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
Jan 24 '07 #1
7 1293
Motoma
3,237 Expert 2GB
This isn't really a question...
What are you having problems with?
Jan 24 '07 #2
r035198x
13,262 8TB
Enter into array, 8 marks, then
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
and when you do decide to post the question make sure you include the codes that you have tried for this (using code tags).
Jan 24 '07 #3
BQuin
3
How to write the above program. I dont know where to even start. its an assignment I got from school.
Jan 24 '07 #4
Motoma
3,237 Expert 2GB
How to write the above program. I dont know where to even start. its an assignment I got from school.
I would suggest, then, opening the programming book you received/bought when you registered for your class. This should provide you with an understanding of arrays as well and the proper techniques for iterating through them, including control structures such as for and while loops.
Do you have any code written? Posting this would be a great place to start when asking for help.
Jan 24 '07 #5
r035198x
13,262 8TB
How to write the above program. I dont know where to even start. its an assignment I got from school.
But surely you know how to write the shell of the program. Write that and post it.
Jan 24 '07 #6
cworld
15
yes it is a simple program. i suggest you to read a simple programming book. then you compare two nos save the no which is large and compare it with third and so on .
Once you try then if you face the problem then again ask.
cworld
Jan 24 '07 #7
BQuin
3
thanks guys...I'll give it a shot and get back to you
Jan 24 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by lonelyplanet999 | last post: by
270 posts views Thread by Jatinder | last post: by
4 posts views Thread by William | last post: by
134 posts views Thread by evolnet.regular | last post: by
6 posts views Thread by Paul Fi | last post: by
42 posts views Thread by Kevin Spencer | last post: by
23 posts views Thread by Dexter | last post: by
43 posts views Thread by Adem24 | last post: by
5 posts views Thread by JavaMas | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.