Skip to content
Dr Jack HW Helper
Home
Browse
About
Contact
Academic Integrity
T
Academic Integrity:
tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.
Home
Browse
#
#include #include using namespace std; int main() { int n , j ,y; double _sum=0
#include #include using namespace std; int main() { int n , j ,y; double _sum=0
ID:
3653238
• Letter:
#
Question
#include #include using namespace std; int main() { int n , j ,y; double _sum=0 , variance; cout << " How many numbers to type? " << endl; cin >> y; double max[y]; for(n=0;n<=y-1;n++) { cout << "Type next number: "; cin >> max[n]; } n=0; cout << endl; cout << "Numbers are: "; for(j=0;j<=y-1;j++) { cout << max[n] << " "; _sum+=max[n]; n++; } double mean = _sum/n; cout << endl << "The Sum is: "<< _sum << endl; cout << "The mean is: " << mean << endl; n=0; j=0; _sum=0; for(j=0;j<=y-1;j++) { max[n]=pow((max[n]-mean),2); _sum+=max[n]; n++; } variance=_sum/(n-1); cout << "Variance is: " << variance <<" "; cout << "Standard Deviation is: " << sqrt(variance) << " "; }
Explanation / Answer
#include #include using namespace std; int main() { int n , j ,y; double _sum=0 , variance, temp; vector max; cout
Related Questions
#include #include #pragma warning(disable : 4996) // Read before you start: // D
Question #3666279
#include #include #pragma warning(disable : 4996) // Read before you start: // D
Question #3790943
#include #include /* Structure to store students data */ struct Product { char *
Question #3684842
#include #include // For error exit() // CPU Declarations -- a CPU is a structur
Question #3593343
#include #include \"FuelGauge.h\" #include \"Odometer.h\" using namespace std; i
Question #3820563
#include #include int G = 1; int + p; void fune(int - atgl, int arg2) {statie in
Question #3824429
#include #include int G = 1; int* P; void func(int * agrl int arg2) {static int
Question #3824730
#include #include int main() { int i, j; char str[10][50], temp[50]; printf(\"En
Question #3833155
Navigate
Browse (All)
Browse #
Subjects
Previous
#include #include using namespace std; int main() { int a, b; int oldest = -99;
Next
#include #include using namespace std; int menu() { int operation; cout > operat