Question: C++ Program Description: You are working in a biology lab as a data scientist. Your job is to collect and analyze all data of a


Program Description: You are working in a biology lab as a data scientist. Your job is to collect and analyze all data of a special type of bacteria. After a few days of hard working, here are the data sets generated: 1 day temperature 40F 142 156 105 143 244 201 213 60 F 15 70 F The data you need is presented in a 2-D array format. Therefore, your program should create a two dimensional array of 4 rows and 4 columns, total of 16 integers. The array will be filled by user input, any input values outside the range of 0-500 must be required to re-enter. For test purposes, please manually enter the numbers provided above And then display the all values (in a 2-D table format, with rows and columns, format the display use setw function. Your output format should match my sample output), The program should also display the average value of all data (the average should have two decimals). The program should display the highest for all data The program should also display the sum for a certain temperature (row sum) The program should display the lowest value for a certain day (column lowest) Program Structure: Declare two constant variables. 1. const int ROW_SIZE = 4; 2. const int COL_SIZE = 4; //only the column size can be declared as global constant The following functions must be included, but you may add additional functions if you wish. getData This function should pass a two dimensional array, and its row size. The function fills with data with user input. void getData(int data[][COL_SIZE), const int ROW); displayData This function should be passed by array. The function will display all grades in the format shown on the back of this page. void displayData(const int data[][COL_SIZE], const int ROW); You have to use left >" will read until a space. For example, if you type "135" separated by a only space on console (not by pressing enter key), the following code will work just fine: int nums[3]; for (int i = 0; i > nums[i]; /ums as an array will contain 13 and 5. Lo A Paste Font Paragraph Styles Sensitivity Sample Display: Please enter all values: Enter valuse for Row: 1: 105 156 142 143 Enter valuse for Row: 2:201 213 212 244 Enter valuse for Row: 3:98 82 92 97 Enter valuse for Row: 4:10 13 15 19 You have just entered: 105 156 142 143 201 213 212 244 98 82 92 97 10 13 15 19 The average of all data is: 115.13 The highest value of all data is: 244 Y Please enter a row number so I can show you the sum of that row: 2 The sum of row 2 is: 870 Please enter a column number so I can show you the lowest value for that column: 3 The lowest value for that column is: 15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
