Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This project is for a computer science 1 course in c++. I need to complete number 4. Need to create a program that calls a

image text in transcribed

This project is for a computer science 1 course in c++. I need to complete number 4. Need to create a program that calls a function to read in a text file. The file I need to use is called data.txt and it contains these numbers. How do you create this file too?

84 87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 68 94 57 12 43 30 74 22 20 85 38 99 25 16 71 14 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89 85 4 52 55 100 33 61 77 69 40 13 27 87 95 40 

The program then needs to call a function that will calculate the standard deviation of all the numbers that were in the data.txt file. Finally, the program has to allow the user to enter the name of the file. Allow the user to make up to 3 mistakes when typing in the file before ending the program. Thanks!

e, course sylabus cs -1511 x HW7.pdf x C XM course: MATH 3298 x Spike Ball Gamecombo x M Textbooks Invitation to x & Textbooks Google Dri C Secure I https drive.google.com/ You may assume that the partially filled array contains only lowercase letters. Embed your function in a suitable test program. 4. The standard deviation of a list of numbers is a measure of how much the numbers deviate from the average. If the standard deviation is small, the numbers are clustered close to the average. If the standard deviation is large, the numbers are scattered far from the average. The standard deviation, S, of a list of N numbers x is defined as follows: where x is the average of the N numbers x1, x2, Define a function that takes a partially filled array of numbers as its arguments and returns the standard deviation of the numbers in the partially filled array. Since a partially filled array requires two arguments, the function will actually have two formal parameters: an array parameter and a formal parameter of type int that gives the number of array positions used. The numbers in the array will be of type double. Embed your function in a suitable test program. a Ask me any A 2:14 AM 3/29/2011 20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago