ALL PARTS (a) Make a Matlab file that prints out a random number in a text file. (b) Make a Matlab code that predicts the level of water in a cup as a function of time, if the cup is cylindrical and has a hole in the bottom. The code should print out in a text file the time it takes to reach half of the original water level. (c) Upgrade your code from the previous problem to account for cups with a taper [cups with a smaller diameter on the bottom than at the top]. Make your code save a .png image of a figure of water lelvel vs. time. Make your code also print out a text file which lists all input parameters followed by data for the time it takes to reach
(1)/(2),(1)/(4)
,
(1)/(8)
, and
(1)/(16)
of the initial water level. Do all results make sense? (d) EXTRA CREDIT tasks for 709 students / MANDATORY task for 809 students: Perform a validation experiment and write a short document presenting and discussing the comparison of numerical and experimental results for the draining cup [1 page limit]. Expect a good agreement if the hole area is accurately measured.