Purchase Solution

C++ program to compute mean and standard deviation

Not what you're looking for?

Ask Custom Question

Design and write a c++ program that reads a set of scores from attached "numbers.txt" and outputs their mean and standard deviation using cout.

Attachments
Purchase this Solution

Solution Summary

The epert designs and writes a c++ program to compute the mean and standard deviation.

Solution Preview

Please see the program below. Note that the file "numbers.txt" should be placed in the same directory as the compiled program.

int main(void)
{
ifstream input;
int number,num;
double sum,sum_of_squares,avg;

// Open the file containing the numbers.
input.open("numbers.txt");

// Read the numbers from ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.