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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 4GZ
icon
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".
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
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage