Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 2 :Bacteria number estimation ( this question is for assignment so please make sure it is different by all means because so many people
Exercise :Bacteria number estimationthis question is for assignment so please make sure it is different by all means because so many people will be using chegg as it is the trusted source in the world, and also use c only, thanks in advance
Microbiologist estimating the number of bacteria in a sample that contains bacteria that do not grow well on solid media may
use a statistical technique called the nu most probable number MPN method. Each of five tubes of nutrient medium receives
ml of the sample. A second set of five tubes receives ml of sample per tube, and in each of the a third set of five tubes,
only ml of sample is placed. Each tube in which bacterial growth is observed is recorded as a positive, and the numbers
for the three groups are combined to create a triplet such as which means that five tubes receiving ml of sample
showed bacterial growth, only two tubes in the ml group showed growth,and only one of the ml group was positive. A
microbiologist would use this combinationofpositives triplet as an index in the table like Table to determine that the most
probable number of bacteria per ml of the sample is and of the samples yielding this triplet between and
bacteria per ml This information is stored in a file, mpmfile.txt that has the same structure as Table
a Define a type, MPNInfo, that represents each record in the file containing information on bacterial concentrations for
Most Probable Number. Each of these records is made of a string combinationofpositives as described above, an
integer representing the MPN Index ml the lower number of bacteria per ml and upper number of bacteria per
ml
b Define a function LoadMpnTable that uses a variable of type MPNInfo to load the MPN table from a stored file,
mpnfile.txt into four parallel arrays:
an array of strings combOfPositives
three integer arrays mpn lower and upper
Your function must return the actual array size number of records read from the file
Table : Table of Bacterial Concentrations for Most Probable Number Method
Confidence Limits
Combination of
Positives MPN Index ml Lower Upper
c Define a function Search that takes as arguments: the actual size of arrays, the arrays read in b:
an array of strings combOfPositives
three integer arrays mpn lower and upper
and a combinationofpositives triplet and finds its index in the array combOfPositives, and produces the following:
if the target is found, this index is used to generate a message. For example, using information in Table if the
triplet given is the following message is produced:
For MPN of samples contain between
and bacteria ml
if the target is not found in the array, the following message is produced:
The combination does not exist
d Provide a driver program to test the functions above.
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