Question: Create a C program that performs the following tasks: -Declare an integer array capable of storing 15 values -Generate 15 random numbers using the rand

Create a C program that performs the following tasks:

-Declare an integer array capable of storing 15 values

-Generate 15 random numbers using the rand function

-The range of the random numbers should be between 0 and 1000

-Store the random values in the array

-Display the contents of the array on a single line

-Separate the values using commas and spaces

-Perform the following array-based functions

-Determine the location of the minimum value in the array

-Determine the location of the maximum value in the array

-Determine the average value of the array

-Display the results of the array-based functions (see Example Output section)

-Display the average result to two (2) decimal places

Additional Notes

Display programmers name and homework number and at top of program output

Ensure your source code conforms to the programming and commenting standards for the class

Submit the project source code as a single *.c file

Submit a text capture of the compiler output as a *.txt file

Submit a text capture of the program output as a *.txt file

Example Output

// This example is based on a random number generator seed of 10 Ima C Programmer Homework 6 Contents of the Array: 113, 380, 293, 290, 246, 456, 797, 888, 981, 214, 323, 99, 591, 208, 895, The minimum value 99 is located at index 11 The maximum value 981 is located at index 8 The average value of the array is 451.60 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!