Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Biology Expert

Data load function Interface function data = data Load (filename) % insert your code here Input arguments filename: A string containing the rename of a data le. Output arguments data: An N 3 matrix. User input no. Screen output Yes (error message, see speciation's below.) Description The function must read the data in the data le filename. Each line in the data le consists of the following elds: Temperature, Growth rate, and Bacteria. The elds contain numeric values and are separated by a space character. The following illustrates an example excerpt of such a data le: 25 0.109 1 20 0.096 2 15 0.517 3 35 1.086 4 40 0.934 2 35 0.109 1 ... The Bacteria eld is a numeric code that correspond to one of the following bacteria names:

                Bacteria Name

i.              Salmonella enterica

ii.             Bacillus cereus

iii.             Listeria

iv.            Brochothrix thermosphacta

The data in the le must be stored in an N 3 matrix called data, where N is the number of valid rows in the data le. Handling data errors there might be one or more erroneous lines in the data le which the function must handle. If the data load function detects an erroneous line in the data le it must skip this line, output an error message to the screen, and continue with the next line. The function must only return the data from the valid rows. The error message must explain in which line the error occurred and what the error was. The function should check for the following: The Temperature must be a number between 10 and 60. The Growth rate must be a positive number. The Bacteria must be one of the four mentioned in the table above.

Justify your answer and describe it.

Biology, Academics

  • Category:- Biology
  • Reference No.:- M91145915

Have any Question?


Related Questions in Biology

Your optometrist shines a light in your eye and notices

Your optometrist shines a light in your eye and notices your pupil constricts in response to light. She tells you the iris is a muscle that adjust the sizes of the pupil automatically is response to light entering the ey ...

How does the fact that dna is compacted into chromosomes

How does the fact that DNA is compacted into chromosomes specifically help with replication/and or transcription?

If you dont water a plant it will eventually die explain

If you don't water a plant it will eventually die. Explain why the absence of water halts photosynthesis. Also, cells that use aerobic cellular respiration, like humans, do not produce ATP at normal levels without oxygen ...

What changes would you expect to see in the liver cells of

What changes would you expect to see in the liver cells of someone suffering from chronic alcoholism?

In some varieties of chickens as in snapdragons incomplete

In some varieties of chickens, as in snapdragons, incomplete dominance involves three colors: white (aa) blue (Aa), and black (AA). If a blue male chicken is mated with a blue female, what are the expected phenotypic and ...

Title titer mtl what do you mean when you refer to the

Title Titer MTL: what do you mean when you refer to the burst size of a phage? How will burst size affect your Titer?

The united states established the first national park in

The United States established the first National Park in the world on March 1, 1872. What does this say about the people of the United States?

Question write a 525- to 700-word paper on the genetic

Question: Write a 525- to 700-word paper on the genetic disorder (Sickle Cell Disease ). Include the following in your paper: Summarize the Chromosomal Theory of Inheritance and how chromosomal abnormalities can lead to ...

The ch50 assay is a traditional clinical assay that

The CH50 assay is a traditional clinical assay that measures the function of complement components. In a CH50 assay patient blood is drawn and serum separated from it (serum has no cells). Patient serum is mixed with ant ...

2croh3nbspnbsp3br2 10oh-6br-nbspnbsp2cro42- 8h2oin the

2Cr(OH) 3  +  3Br 2 + 10OH - 6Br -  +  2CrO 4 2- + 8H 2 O In the above redox reaction, use oxidation numbers to identify the element oxidized, the element reduced, the oxidizing agent and the reducing agent.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As