Search for question
Question

1. Consider a program that inputs 2 numbers as the lengths of the sides of a rectangle, and then calculates the area. a) Write this problem in pseudo code. b)

Code this into Matlab and test your program on the rectangle with sides 7 and 3.You now want to modify your program so that it can calculate the volume of a cuboid. c) Write this new problem in pseudo code. d) Code this into Matlab and test your program on the cuboid with sides 2, 3, and 9.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5