A science model: a small laboratory in a castle in Transylvania lives a Mad Scientist. He grows a special type of bacter

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

A science model: a small laboratory in a castle in Transylvania lives a Mad Scientist. He grows a special type of bacter

Post by answerhappygod »

A science model:
a small laboratory in a castle in Transylvania lives a Mad
Scientist. He grows a special type of bacteria that is a key
ingredient in his homemade Yogurt. At precisely the first hour of
his day (local Transylvania time, he begins cultivating his
bacteria. The Mad Scientist starts with a culture of 20100 bacteria
and adds his magic growth powder to the culture.
With this magic powder, the bacteria will multiply at a rate of
7.25% each hour. At hour 3, he accidentally spills a bottle and
adds another 11000 bacteria into the culture. At hour 7, before
heading out for a walk around the castle, he forgets that he had
already added the magic powder and adds another spoonful, raising
the growth rate to 9.55% per hour. At
hour 10, the family pet (a bat) snacks away 16080 bacteria from the
culture before it hangs up for bed. Unfortunately, at hour 12, Mrs
Mad Scientist forgets to close the blinds in the laboratory and
allows the sunlight in. Sunlight causes the death rate of the
bacteria to increase to 10.87% each hour. When the Mad Scientist
wakes up at hour 16, he travels to the
lab and casts a spell to count the number of bacteria in the
culture.
Complete the corrections of the computational model based on the
given science model. Each of your corrections should take on one of
the following simple forms, where ??? are
the numbers you need to determine. Do not add comments, redundant
parentheses, or unnecessary code.
• P(t+1) = P(t+1) + ??? ;
• P(t+1) = P(t+1) - ??? ;
• birth = ??? ;
• death = ??? ;
clear,clc;
birth = 0.0725 ;
death = 0.0 ;
P(1) = 20100 ;
deltat = 1;
-
-
for t = 1 : 1 : 15
P(t + 1) = P(t) + deltat * (birth - death) * P(t);
P(t + 1) = floor(P(t + 1));
% Correction 1
if t == 3
[Correction 1]
end
% Correction 2
if t == 7
[Correction2]
end
% Correction 3
if t == 10
[Correction3]
end
% Correction 4
if t == 12
[Correction4]
end
end
P
plot(1 : length(P), P, '*-.')
xlabel ('Time (hour)')
ylabel ('Number of bacteria')
title('mad scientist experiment')
please provide mathlab code
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply