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, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
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
Biology, 27.07.2020 02:01
question
Mathematics, 27.07.2020 02:01
question
Mathematics, 27.07.2020 02:01
question
Mathematics, 27.07.2020 02:01
Questions on the website: 13722362