Question: Please help me write this C++ project. I need a program that uses a two-dimensional array to store the data from the .txt File and

Please help me write this C++ project. I need a program that uses a two-dimensional array to store the data from the .txt File and the weight. I need this program to output the highest, the lowest, the average, occurrence of highest and occurrence of the lowest weight in the .txt File, and I need the program to consist of the following functions.

1) On the first function I need it to read the data from the .txt file and store the data in the two-dimensional array. This file consists of sixty elements.

2) With the second function it needs to calculate and return the data and the highest weight in the array. Pleas display the result in main.

3) For the third function I need it to calculate and return the data and the lowest weight in the array. Please display result in main.

4) The fourth function will need to calculate and return the average of the weights in the array. Please display the result in main

5) And lastly, I need the fifth function to calculate and display the occurrence of the lowest and highest weight in the array. Please display result in main as well.

Here is the data for the .txt file

6 1 2021 192.2 6 2 2021 191.1 6 3 2021 192.5 6 4 2021 192.5 6 5 2021 191.8 6 6 2021 190.0 6 7 2021 193.5 6 8 2021 192.5 6 9 2021 191.6 6 10 2021 188.4 6 11 2021 188.1 6 12 2021 193.5 6 13 2021 190.4 6 14 2021 188.4 6 15 2021 188.8 6 16 2021 189.4 6 17 2021 187.4 6 18 2021 188.3 6 19 2021 187.1 6 20 2021 189.4 6 21 2021 193.2 6 22 2021 191.1 6 23 2021 189.1 6 24 2021 190.3 6 25 2021 192.3 6 26 2021 190.3 6 27 2021 190.7 6 28 2021 191.4 6 29 2021 191.4 6 30 2021 190.5 7 1 2021 190.7 7 2 2021 190.5 7 3 2021 190.8 7 4 2021 191.4 7 5 2021 190.5 7 6 2021 192.7 7 7 2021 191.6 7 8 2021 189.1 7 9 2021 189.8 7 10 2021 190.9 7 11 2021 189.8 7 12 2021 190.9 7 13 2021 190.3 7 14 2021 189.7 7 15 2021 190.9 7 16 2021 190.5 7 17 2021 187.1 7 18 2021 190.5 7 19 2021 192.5 7 20 2021 191.5 7 21 2021 192.5 7 22 2021 189.6 7 23 2021 190.5 7 24 2021 192.5 7 25 2021 191.6 7 26 2021 191.5 7 27 2021 193.5 7 28 2021 190.5 7 29 2021 191.6 7 30 2021 192.3

And here is the sample run for how i need it to look, thank you

Please help me write this C++ project. I need a program that

uses a two-dimensional array to store the data from the .txt File

Welcome to Weight Analysis Program. The program should output the highest, the lowest, the average, occurrence of highest and occurrence of the lowest weight in the file. 193.5 The Highest Weight in the Array: Date : 7 - 27 - 2021 187.1 The Lowest Weight in the Array: Date : 7 - 17 - 2021 The Average of the Weights in June and July : 190.8 The occurrence of the lowest and highest weight in the array are as follows: The Lowest: 6-19-2021 7-17-2021 The Highest: 6 - 7 - 2021 6 - 12 - 2021 7-27-2021 Number of occurrence of min weight: N Number of occurrence of max weight: 3

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!