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 tracking the number of bacteria
growth for each day at the specified temperatures, here are the data generated:
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 columns, total of 20 integers.
The array will be filled by the input file bacteria.txt.
Next display all of the 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 listed
below).
The program should also display the average value of all data (the average should have
two decimals).
The program should display the highest value for all data.
The program should also display the sum for a certain temperature requested (row
sum). You must validate that the row requested is a valid value.
The program should display the lowest value for a certain day (column lowest). You
must validate that the column requested is a valid value.
Program Structure:
Declare two constant variables.
const int ROW_SIZE =4;
const int COL_SIZE =5; //only the column size should be declared as global constant
The following functions must be included, but you may add additional functions if you
wish.
with bacteria.txt file input .
getData This function should pass a two dimensional array, and its row size. The
function fills with the array with the data in the bacteria.txt file.
void getData(int data[][COL_SIZE], const int ROW);
 Program Description: You are working in a biology lab as a

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!