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 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
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: 13722363