00:01
In this question we have to make a matlab code that accomplish this task described in this question.
00:07
So this is the k calculator problem.
00:10
And here we request a user to input for the numbers of servings required.
00:15
So code for this is.
00:17
Servings is equal to input, enter the numbers of servings.
00:22
R is equal to servings multiplied by 96 divided by pi multiplied by 2 to the power 1 divided by 3.
00:29
Volume is equal to pi multiplied by r to the power 2 multiplied by 2.
00:36
Icing is equal to 0 .25 multiplied by pi multiplied by r to the power 2.
00:42
F print f servings percent d slash n cake volume.
00:49
2f in i to the power 3 slash n cake radius percent 2f in slash n icing needed percent 2f in to the power 3 slash n servings volumes are icing...