How do you find an average of each row in a 2-dimensional array and make the last column hold the average?
Thanks
How do you find an average of each row in a 2-dimensional array and make the last column hold the average?
Thanks
Here's a tip - try your assignments rather than just dumping them all on the board.
http://cboard.cprogramming.com/showthread.php?t=80145
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
It wasn't an assignment I'm trying to study and going through things I'm not sur about. I was asking for help as that is what this whole web site is about. Don't assume anything about me or why I'm asking for help. Also don't answer me if you've got noting helpful to say. Just ignore it if you don't want to answer.... obviously you have way too much time on your hands!!!
Then how about you read this announcement:
http://cboard.cprogramming.com/annou...ouncementid=39
And the couple of others there simply to enhance your prospect of a response. Otherwise you will be treated like a leech.
Last edited by Dave_Sinkula; 06-16-2006 at 07:58 PM. Reason: ~leach/leech
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
As I Said It's Not Homework It Is Study!!!! This Isn't A Program That I Have To Do And Hand In.
Once Again An Unhelpful And Pointless Response...
And obviously you have little since you didn't even provide us with some code that at least showed you made an effort to answer your own question. Any assesment that you are a lazy person is thus quiet... normal.
Calm down. You type too many exclamation marks. Move that anger towards solving this array problem of yours. That's the one bugging you. If you do just that you will get answers when you next come and ask why your code isn't working. Other than that... good luck
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Well thankyou for the assessment on my punctuation!!!!!!!!!!!!!!!
But, suprise suprise, that's not really what I was looking for.
Ah... alright you are right. Sorry
You don't deserve this. Ok... so, how to find the average on that 2D array...
An average of any given array of numbers is equal to the sum of its element values divided by the number of elements in the array.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Homework, either personal or for school, is still homework.
Try a new thread that posts your attempt, or PM a mod to reopen this.
Last edited by Dave_Sinkula; 06-16-2006 at 07:51 PM. Reason: Redundancy in my original edit.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*