Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions