| | |
can anyone help me with this?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 2
Reputation:
Solved Threads: 0
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...
==
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...
•
•
Join Date: Sep 2008
Posts: 90
Reputation:
Solved Threads: 12
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
http://www.daniweb.com/forums/announcement8-2.html
Last edited by unbeatable0; Dec 17th, 2008 at 10:43 am.
•
•
Join Date: Mar 2008
Posts: 1,488
Reputation:
Solved Threads: 123
>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()
ect..
Getting the picture?
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()
C++ Syntax (Toggle Plain Text)
float calcavg() { // Code Here } float variance() { // Code Here } int main() { // Code Here }
Getting the picture?
Last edited by William Hemsworth; Dec 17th, 2008 at 1:02 pm.
![]() |
Other Threads in the C++ Forum
- Previous Thread: RightClick Event for button
- Next Thread: BackgroundImage for Control
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






