Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Top of Form in C++ Processing an Array with Functions Objectives: Define an array to store data (use random numbers this week) Design and code

Top of Form in C++

Processing an Array with Functions

Objectives:

Define an array to store data (use random numbers this week)

Design and code a function to generate random data in an array

Design multiple functions to process the data in the array

Design and code a function to print the data from the array

Instructions:

In this lab, you will be processing an array of 25 random numbers between 1-100 (do not use srand command so all results are the same). You will be required to write functions to:

Generate random numbers in the array

Find and print the highest value in the array and its position in the array

Find and print the lowest number in the array and its position in the array

Find the average of the values in the array return the value to main

Print the array position, the value in the array, and its difference from the average for all 25 positions in the array. Put a heading on the top of this table of information.

Table Format:

Position Value Difference from the Average

0 ? +/- ???

1 ? +/- ???

Data:

Random numbers

Run: Run the program and be sure to check the results to see if they are correct.

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago