Write a program to display a menu (as given beld and prompt the user to choose from the menu (I numbers 1 to 5). Show the menu until the user enters 5 to exit from the program. 1.Circle 2.Square 3.Rectangle 4.Triangle 5.Exit
Write a program to display a menu (as given beld and prompt the user to choose from the menu (I numbers 1 to 5). Show the menu until the user enters 5 to exit from the program. 1.Circle 2.Square 3.Rectangle 4.Triangle 5.Exit
Chapter8: Arrays
Section: Chapter Questions
Problem 4GZ
Related questions
Question
![• Write a program to display a menu (as given belov
and prompt the user to choose from the menu (Er
numbers 1 to 5). Show the menu until the user
enters 5 to exit from the program.
1.Circle
2.Square
3.Rectangle
4.Triangle
5.Exit
Based on the user's selection, print the choice. For
example, if the user chooses 2, print "The choice is
Square".](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc45a61cd-259f-4034-96ab-adfb5c1cf9d8%2Fd6570dc7-c762-4fbc-9633-a5b27924210b%2Fezbl3hb_processed.png&w=3840&q=75)
Transcribed Image Text:• Write a program to display a menu (as given belov
and prompt the user to choose from the menu (Er
numbers 1 to 5). Show the menu until the user
enters 5 to exit from the program.
1.Circle
2.Square
3.Rectangle
4.Triangle
5.Exit
Based on the user's selection, print the choice. For
example, if the user chooses 2, print "The choice is
Square".
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr