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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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: The data you need is presented in a 2-D array format. Therefore, your program should create a twodimensional 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 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) Program Structure: Declare two constant variables. 1. const int ROWSIZE=4; 2. const int COLSIZE=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. - getAllData This function should pass a two dimensional array, and its row size. The function fills with data with user input. void getAllData(int data[][COL_SIZE], int row_size) - displayAllData This function should have the array as parameter and the number of rows. It should display all values in the array in the format shown in the "sample display" section. void displayAllData(int data[][COL_SIZE], int row_size) You have to use left

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions