Question: 1 . Write a C + + program that does the following: a . Create a C + + file with the name problem 1

1. Write a C++ program that does the following:
a. Create a C++ file with the name problem1.cpp.
b. Prompt the user to enter 10 integers and store each integer into a separate element of a 10-element integer
array.
c. Compute a, the average of the 10 integers.
d. Print the average a.
e. Compute b, the average of those array elements with value greater than or equal to a.
f. Print the average b.
Sample run of the program:
Enter ten numbers: 12934226457623419
Average of the integers in array: 25.9
Average of the integers greater than or equal to the overall average of 25.9 is: 47.25

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 Programming Questions!