Question: Create a program that has an array that can hold up to 5 0 0 double values. Create a function to store 5 0 0

Create a program that has an array that can hold up to 500 double values.
Create a function to store 500 integers between 150000(Random). AFTER all the values have been stored into the array (not while),
Print your name to the console.
Print the number of values that were read from the file to the console.
Calculate the average of the values, and print it to the console. (Average is calculated by adding all the 500 numbers divided by 500)
Loop through the array and print the index of the array if the value is less than average.
Take a screenshot of the console to include with your uploaded files, and name the screenshot Problem2YourName.jpg (or png or whatever the default type is for your computer screenshot).

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!