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.
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
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning