Question: 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

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 is a set of sample data generated: 1 2 3 4 day temperature 40 F 105 156 142 143 50 F 201 213 212 244 60 F 98 82 92 97 70 F 10 13 15 19 . 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 also display the sum for all temperatures (row sums) The program should display the sum for all days (column sums) The program should also display the diagonal lowest value. (for example: smallest values among: 105, 213, 92, 19) . . 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. getOneNum this function should accept one reference parameter, and ask user to enter a value for the parameter. This function should also validate user input. Any input values outside the range of 0-500 must be required to re-enter. void getOnetNum(int & data) getAllData This function should pass a two dimensional array, and its row size. The function fills with data with user input. This function should call the getOneNum function. void getAllDatalint data[][COL_SIZE], int row_size)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
