Question: Anyone help me write this? im stuck. 2. (Data processing) a. Store the following data in a file, or se the numbers.dat file provided on

 Anyone help me write this? im stuck. 2. (Data processing) a.

Anyone help me write this? im stuck.

2. (Data processing) a. Store the following data in a file, or se the numbers.dat file provided on this book's Web site. 5 96 87 78 93 21 4 92 82 85 87 6 72 69 85 75 81 73 b. Write a C++ program to calculate and display the average of each group of numbers in the file created in Exercise 2a. The data is arranged in the file so that each group of numbers is preceded by the number of data items in the group. Therefore, the first number in the file, 5, indicates that the next five numbers should be grouped together. The number 4 indicates that the following four numbers are a group, and the 6 indicates that the last six numbers are a group. (Hint. Use a nested loop. The outer loop should terminate when the end of file has been encountered.)

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!