Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Done HW2-hyb (1).docx MGIS 2320 - HW2 Write a console application to allow a user to (1) set a length and a width of a

image text in transcribed
Done HW2-hyb (1).docx MGIS 2320 - HW2 Write a console application to allow a user to (1) set a length and a width of a rectangle, (2) display the area of the rectangle, and (3) repeat until the user enters 0 to exit, according to the user's menu choice as follows: Menu Menu Menu 1. To set and display the length 1. To set and display the length 1. To set and display the length 2. To set and display the width 2. To set and display the width 2. To set and display the width 3. To display the area 3. To display the area 3. To display the area 0. To exit the program 0. To exit the program 0. To exit the program Enter a menu choice: 3 Enter a menu choice: 4 Enter a menu choice: 0 The area of Ox 0-0 Invalid input. Try again. Press any key to continue... Menu Menu 1. To set and display the length 1. To set and display the length 2. To set and display the width 2. To set and display the width 3. To display the area 3. To display the area 0. To exit the program 0. To exit the program Enter a menu choice: 1 Enter a menu choice: 77 Enter a length:20 Invalid input. Try again. Length is set to 20. Menu 1. To set and display the length 2. To set and display the width 3. To display the area 0. To exit the program Enter a menu choice: 2 Enter a width:30 Width is set to 30. Menu 1. To set and display the length 2. To set and display the width 3. To display the area 0. To exit the program Enter a menu choice: 3 The area of 20 x 30 - 600 Requirements 1. The program must be repeated until 0 (zero) is entered. 2. If the first or second menu is selected, the program will ask for a value via a message such as "Enter a length:, assign a value to a variable, and display a confirmation message. 3. If the third menu is selected, the program will display a message such as "The area of 20 x 30 = 600." 4. If the user enters any other number, the program should display a message e.g. "Invalid input. Try again

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_2

Step: 3

blur-text-image_3

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions