matlab homework
CMPSC 200 HW-Week #1 (6 problems total) Summer 2017
P1. The number of bacteria, B, in a certain culture that is subject to refrigeration can be
approximated by the equation , where e, is the irrational number 2.71828
B300000e 0.032t
(rounded to five decimal places) known as Euler’s number, and t is the time, in hours, that the
culture has been refrigerated. Using this equation write a Matlab script that prompts the user for
a value of time, calculates the number of bacteria in the culture, and displays the results. Check
<005c0052005800550003005300550052004a005500440050000300580056004c0051004a00030044000300570048005600570003004c00510053005800570003005200490003001400130003004b0052005800550056000300440051004700030044005300
5300480051004700030057004b004800030055004800560058>lt to the script as comments.
P2. The volume of oil stored in a underground 200-foot deep cylindrical tank is determined by
measuring the distance from the top of the tank to the surface of the oil. Knowing this distance
and the radius of the tank, the volume of oil in the tank can be determined using the formula
. Using this information write a Matlab script that prompts
volumeradius 2200distance
the user to input the radius and distance measurements, calculates the volume of oil in the tank,
and displays the two input values and the calculated volume. Check your program using a test
input of radius=10 feet and distance<002000140015000300490048004800570003004400510047000300440053005300480051004700030057004b004800030055004800560058004f005700030057005200030057004b00480003005600460055004c0053005700030044005600030046005200
50005000480051005700560011>
1