Microbiologists 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 most probable number (MPN) method. Each of five tubes of nutrient medium receives 10 ml of the sample. A second set of five tubes receives 1 ml of sample per tube, and in each of a third set of five tubes, only 0.1 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 5-2-1, which means that all five tubes receiving 10 ml of sample showed bacterial growth, only two tubes in the 1-ml group showed growth, and only one of the 0.1-ml group was positive. A microbiologist would use this combination of-positives triplet as an index in a table like Table 7.5 to determine that the most probable number of bacteria per 100 ml of the sample is 70, and 95% of the samples yielding this triplet contain between 30 and 210 bacteria per 100 ml. Write a C++ program to implement the following algorithm for generating explanations of combination-of-positives triplets. 1. Load the MPN table from a file into four parallel arrays: • an array of strings comb Of Positives • three integer arrays — mpn, lower, and upper 2. Repeatedly get from the user a combination-of-positives triplet, find its subscript in comb Of Positives, and use this subscript on mpn, lower, and upper to generate a message such as: Define and call the following functions.
The post Write a C++ program to implement the following algorithm for generating explanations of combination-of-positives triplets. appeared first on Unified Papers.