Question: Hello, Please help to write this program in C programming language. Thank you! For HW #12 your program should prompt the user for the number
Hello,
Please help to write this program in C programming language. Thank you!


For HW #12 your program should prompt the user for the number of channels of input and the number of data points, create the variable length array to hold the data, and fill the variable length array with random data. Your program must have the following functions. double dRand(void) /l returns a random number between 0.0 and 10.0 return rand RAND MAX 0*(10.0 int Setup(int *pnChan, int *pnPt); Here's the prototype for the function you need to write 1. Prompts the user for the number of input channels to use in the range of 2 to 10. 2. Gets the users input. 3. Prompts the user for the number of data points. The options are 2048, 4096, or 8192. a. You can either give them a menu to choose from or round up their response to an acceptable value with the maximum being 8192. 4. The function should accept either a zero or an invalid character as a sign to quit. 5. It returns a value of zero unless the user has chosen to quit in which case it should return a value of -1 int CollectData(int nChan, int nPt, double DataC][nPt]); Here's the prototype for the function that you need to write. 1. It accepts a 2D VLA of double and fills it with random numbers by calling dRand0: 2. It returns a value of zero unless an error occurred For HW #12 your program should prompt the user for the number of channels of input and the number of data points, create the variable length array to hold the data, and fill the variable length array with random data. Your program must have the following functions. double dRand(void) /l returns a random number between 0.0 and 10.0 return rand RAND MAX 0*(10.0 int Setup(int *pnChan, int *pnPt); Here's the prototype for the function you need to write 1. Prompts the user for the number of input channels to use in the range of 2 to 10. 2. Gets the users input. 3. Prompts the user for the number of data points. The options are 2048, 4096, or 8192. a. You can either give them a menu to choose from or round up their response to an acceptable value with the maximum being 8192. 4. The function should accept either a zero or an invalid character as a sign to quit. 5. It returns a value of zero unless the user has chosen to quit in which case it should return a value of -1 int CollectData(int nChan, int nPt, double DataC][nPt]); Here's the prototype for the function that you need to write. 1. It accepts a 2D VLA of double and fills it with random numbers by calling dRand0: 2. It returns a value of zero unless an error occurred
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
