Menu: 1. Nasi Lemak 2. Teh Tarik 3. Roti Place order or type 'q' to exit. Add menu: 1 Nasi lemak is added to order Add menu: 2 Teh Tarik is added to order Add menu: q Thank you for your order.
Menu: 1. Nasi Lemak 2. Teh Tarik 3. Roti Place order or type 'q' to exit. Add menu: 1 Nasi lemak is added to order Add menu: 2 Teh Tarik is added to order Add menu: q Thank you for your order.
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 21RQ
Question
Write a menu selection that will output the following sample:
[Hint: System.in.read() or Scanner, do…while, switch case]
![Menu:
1. Nasi Lemak
2. Teh Tarik
3. Roti
Place order or type 'q' to exit.
Add menu: 1
Nasi lemak is added to order
Add menu: 2
Teh Tarik is added to order
Add menu: q
Thank you for your order.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0c01e5ef-fbcb-4cb6-a6a1-b22540f375f3%2Fab75fe9b-61b1-4d83-a50d-d8e22f469f91%2Fth4d1l_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Menu:
1. Nasi Lemak
2. Teh Tarik
3. Roti
Place order or type 'q' to exit.
Add menu: 1
Nasi lemak is added to order
Add menu: 2
Teh Tarik is added to order
Add menu: q
Thank you for your order.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning