Question: A matlab code will be written to calculate the areas of the square, rectangle and trapezoid. Which of the square, rectangle, and trapezoid do

A matlab code will be written to calculate the areas of the square, rectangle and trapezoid. "Which of the square, rectangle, and trapezoid do you want to calculate?" will be asked. When the user types a square with the keyboard, the user will be prompted to enter an edge length of the square. If the shape is rectangular, the phrase "enter the short edge and then the long side" will be directed to the user. If the shape is trapezoidal, the statement "enter bottom edge, enter top edge and enter height" will be directed to the user. After each process, the area calculation process will be made according to the desired shape. After all the processes are finished, the user "Do you want to make another area account?" The question will be posed. If the answer is yes, the operations at the beginning of the program will be done again. If the answer is no, the program will be closed by notifying the user of the number of all area calculations made since the beginning.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!