The standard deviation of a set of data values gives us a sense of the dispersion...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The standard deviation of a set of data values gives us a sense of the dispersion of values within their range. For example, a set of test scores with a small standard deviation indicates that most people's scores were very close to the average score. Some instructors use the standard deviation as a way of determining the range of values to assign a particular grade. Design and write a C++ program that reads a set of scores from the file scores.dat, and outputs their mean and standard deviation on cout. The formula for the standard deviation is 18 - (2x) - n(n 1) where n is the number of values and xi represents the individual values. Thus, to compute the standard deviation, you must sum the squares of the individual values, and also square the sum of the values. All of this reading and summing can be done with a single loop, after which the mean and standard deviation of the scores are computed. Be sure to properly label the output. Use meaningful variable names, proper indentation, and appropriate comments. Thoroughly test the program using your own data sets. The standard deviation of a set of data values gives us a sense of the dispersion of values within their range. For example, a set of test scores with a small standard deviation indicates that most people's scores were very close to the average score. Some instructors use the standard deviation as a way of determining the range of values to assign a particular grade. Design and write a C++ program that reads a set of scores from the file scores.dat, and outputs their mean and standard deviation on cout. The formula for the standard deviation is 18 - (2x) - n(n 1) where n is the number of values and xi represents the individual values. Thus, to compute the standard deviation, you must sum the squares of the individual values, and also square the sum of the values. All of this reading and summing can be done with a single loop, after which the mean and standard deviation of the scores are computed. Be sure to properly label the output. Use meaningful variable names, proper indentation, and appropriate comments. Thoroughly test the program using your own data sets.
Expert Answer:
Answer rating: 100% (QA)
heres a C program that reads a set of test scores from a file calculates their mean and standard dev... View the full answer
Related Book For
Introduction To Statistics And Data Analysis
ISBN: 9780495118732
3rd Edition
Authors: Roxy Peck, Chris Olsen, Jay L. Devore
Posted Date:
Students also viewed these operating system questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Cooper Movie Studio Corp. makes movies and is interested in lowering its operating costs for the following year, while maintaining the high quality and appeal of its movies. Cooper's management is...
-
A small hotel has 50 rooms that rent for $105 per night and cost $45 to clean and prepare each night they are used. All rentals are by reservation and there is a 10 percent chance that an individual...
-
Suppose that for a sample of n = 11 measurements, we find that n = 72 and s = 5. Assuming normality, compute confidence intervals for the population mean with the following levels of confidence: a....
-
Define anti-patterns, functional decomposition and the relationship between them.
-
The company reported the following balance sheet information: Total income tax expense for 2008 was $40,000. Compute the amount of cash paid for income taxes in2008. 2008 2007 Income taxes payable...
-
According to the ideas behind the revenue recognition standard of the FASB, when a seller enters into a contract with a buyer, the seller accepts certain performance obligations in exchange for the...
-
(Each part of this problem is quite long and best worked by groups of students.) Peak intensities of the molecular ion region are listed in parts (a) - (g) and shown in the figure. Identify which...
-
There is a block diagram as shown in Fig. 5. Answer the following questions. (1) Draw the block diagram with its input(VR(t)) and output(V (t)). And use transfer functions for its proportional...
-
Identify some of the kinds of terms individuals may want to include in a premarital agreement that may not be enforceable and explain why. In this context, explain the importance of a severability...
-
What is plain carbon steel? Give the classification of plain carbon steels and their important properties and uses.
-
Identify at least ten ethical dos that should guide the professional conduct of paralegals.
-
Define elasticity, rigidity, hardness, fatigue, ductility, brittleness.
-
Identify the most commonly included provisions of a premarital agreement.
-
The total capital of the firm of Sakshi, Mehak and Megha is Rs. 1,00,000 and the market rate of interest is 15%. The net profits for the last 3 years were Rs. 30,000, Rs.36,000 and Rs.42,000....
-
Ashlee, Hiroki, Kate, and Albee LLC each own a 25 percent interest in Tally Industries LLC, which generates annual gross receipts of over $10 million. Ashlee, Hiroki, and Kate manage the business,...
-
The paper cited in Exercise 5.69 gave a scatterplot in which x values were for anterior teeth. Consider the following representative subset of the data: a. Calculate the predicted values and...
-
The paper Feeding of Predaceous Fishes on Out-Migrating Juvenile Salmonids in John Day Reservoir, Columbia River (Transactions of the American Fisheries Society [1991]: 405420) gave the following...
-
Each individual in a sample was asked to indicate on a quantitative scale how willing he or she was to spend money on the environment and also how strongly he or she believed in God (Religion and...
-
Why is it difficult to convict organized crime leaders?
-
How would an audit not catch missing cash amounts of this magnitude?
-
Why is a threat such as the one allegedly perpetrated by A-Z so difficult to investigate and prosecute?
Study smarter with the SolutionInn App