Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 D array format. Therefore, your program should
create a two dimensional array of rows and columns, total of integers.
The array will be filled by the input file bacteria.txt
Next display all of the values in a 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 ROWSIZE ;
const int COLSIZE ; 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 getDataint dataCOLSIZE const int ROW;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started