can anyone help me with this?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 2
Reputation: dextrew is an unknown quantity at this point 
Solved Threads: 0
dextrew dextrew is offline Offline
Newbie Poster

can anyone help me with this?

 
0
  #1
Dec 17th, 2008
create a program that includes two functions named calcavg() and ariance(). The calcavg() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and include the values 89,95,72,83,99,54,86,75,92,73,79,75,82,73. the variance() function should calculate and return the variance of the data. the variance is obtained by subtracting the average from each value in testvals, squaring the values obtained, adding them, and dividing by the number of elements in testvals. The values returned from calcavg and variance should be displayed using cout statements in main()


==
this is my assignment.. and i really don't know what to do..
thanks a lot.. it will be greatly appreciated..
i hope someone can help me..

more power and god bless...
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 90
Reputation: unbeatable0 is an unknown quantity at this point 
Solved Threads: 12
unbeatable0 unbeatable0 is offline Offline
Junior Poster in Training

Re: can anyone help me with this?

 
1
  #2
Dec 17th, 2008
We won't do your homework. You should provide us some code so we can know you've at least tried.
http://www.daniweb.com/forums/announcement8-2.html
Last edited by unbeatable0; Dec 17th, 2008 at 10:43 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 2
Reputation: dextrew is an unknown quantity at this point 
Solved Threads: 0
dextrew dextrew is offline Offline
Newbie Poster

Re: can anyone help me with this?

 
0
  #3
Dec 17th, 2008
pls?...
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 638
Reputation: daviddoria is a jewel in the rough daviddoria is a jewel in the rough daviddoria is a jewel in the rough 
Solved Threads: 46
daviddoria daviddoria is offline Offline
Practically a Master Poster

Re: can anyone help me with this?

 
0
  #4
Dec 17th, 2008
did you really think "pls?..." was gona change the forum rules/attitude?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 26
Reputation: hiraksarkardg has a little shameless behaviour in the past 
Solved Threads: 2
hiraksarkardg hiraksarkardg is offline Offline
Light Poster

Re: can anyone help me with this?

 
0
  #5
Dec 17th, 2008
You can do it by your own......... try a little bit.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,488
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 123
Sponsor
William Hemsworth William Hemsworth is offline Offline
Nearly a Posting Virtuoso

Re: can anyone help me with this?

 
1
  #6
Dec 17th, 2008
>pls?...
Pathetic.

>i really don't know what to do..
What don't you know how to do? All the information is right there, just do one step at a time and i'm sure you can manage it. When you get stuck on a specific problem, we will help. But don't expect anybody to do it for you.

>includes two functions named calcavg() and variance()
  1. float calcavg() {
  2. // Code Here
  3. }
  4.  
  5. float variance() {
  6. // Code Here
  7. }
  8.  
  9. int main() {
  10. // Code Here
  11. }
ect..

Getting the picture?
Last edited by William Hemsworth; Dec 17th, 2008 at 1:02 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC