Question: Write a C++ program that does the following: 1. Prompts the user for how many integers they wish to enter 2. Reads and stores those

Write a C++ program that does the following:

1. Prompts the user for how many integers they wish to enter

2. Reads and stores those integers in a dynamically allocated array.

3. Calls a function to compute the average of the values in the array.

4. Evaluates and prints the difference in each value and the average

5. Deallocates the array.

Make certain to write a function to compute the average of the values in the array.

Use your IDE to implement this program and upload the main.cpp for your solution once you are done.

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!