Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago