program help

how do i write this program? Write a program in which the main() function 1. Accepts an integer number from the user, N. Generates N random numbers between 0 and 1 and writes these out to a file called DataFile.txt. 2. Calls the function double myavg (int N) that reads in the stored numbers from DataFile.txt and returns their average value to main(). 3. Calls a function called double mysd (int N, double Mean) that reads in the stored numbers, again from the file DataFile.txt, and returns their standard deviation to main(). Note that Mean is the mean value returned by mya g. 4. Writes out the returned average and standard deviation to the console and to a file called DataStats.txt
Have you done anything at all?

We won't do your homework for you - show us something.
Topic archived. No new replies allowed.