subject

Write a program that takes its input from a text file of strings representing numbers of type double. This program should take input from the user specifying the name of a file containing decimal numbers, and should output the average and standard deviation of the numbers in the file. First, calculate the average (sum all the doubles, then divide the result by the number of doubles. Then, calculate the standard deviation as follows: Sum the squares of each number divided y the average of all numbers. (n1 / average)2 (n2 / average)2 (n3 / average)2 ... Divide the result by the number of doubles in the file Finally, take the square root of this number. This is the standard deviation. Your program's output should look as follows:. Count: [number of doubles in the file] Average: (average of the doubles in the file) Standard deviation: (standard deviation of the numbers in the file]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Write a program that takes its input from a text file of strings representing numbers of type double...
Questions
Questions on the website: 13722361