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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started