Answered step by step
Verified Expert Solution
Link Copied!

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 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);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

The broaden-and-build theory of positive emotions.

Answered: 1 week ago