Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for KLane

[CODE] //I need to make a class that calculate the mean and standard deviation. I have to test my program with an external file containing about 300 data. My program doesnt return the correct valuesAny help? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Member Avatar for mellguth
0
1K
Member Avatar for KLane

[CODE]#include <cstdlib> #include <iostream> //Given that f(x)= exp(x)-sin(2x). Use a Newton object to find the minimum of the //function using namespace std; class Newton{ protected: double precision; public: Newton(double p):precision(p){}; virtual ~Newton(){}; double Find(Function& f, double start){};//Find does the actual //iteration for a particular function f starting from a value …

Member Avatar for jonsca
0
96
Member Avatar for KLane

I am trying to write a program that reads an external file and does a few statistics but it does not return the correct values for the mean and standard deviation. Can someone help point point out what I did wrong?? Below is my codes:- #include <cstdlib> #include <iostream> #include …

Member Avatar for SgtMe
0
127
Member Avatar for KLane

I have written the program below to calculate Standard deviation and mean of a given file of data. If I run it gives the wrong answers. Can someone help me go along? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double x; int n; double …

Member Avatar for mrnutty
0
114
Member Avatar for KLane

Someone Please help with this. I want to make a class Statistics and read from an external file and find the mean and standard deviation and below is what i have so far. any suggestions? [code] #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Member Avatar for daviddoria
0
95