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 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Why is it uncommon for users to perform searches directly in database tables? a.)users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets. b.) users are discouraged from interacting directly with tables because this may result in unintended changes to source data. c.)users do not have the technical skills required to perform searches directly in database tables. d.)users do not have the permissions required to perform searches directly in database tables.
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
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
question
Health, 01.06.2020 21:00
question
Mathematics, 01.06.2020 21:00
question
Mathematics, 01.06.2020 21:00
question
Mathematics, 01.06.2020 21:00
question
Mathematics, 01.06.2020 21:00
question
Mathematics, 01.06.2020 21:00
Questions on the website: 13722360