Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Menu must have 2 levels Must use 3 of the following: while, do while, break/continue, switch statements, try/catch. Pen (Xap) Select one the following: An

Menu must have 2 levels

Must use 3 of the following: while, do while, break/continue, switch statements, try/catch.

image text in transcribed

Pen (Xap) Select one the following: An example of a simple console based menu (main level) C for coffee T for tea H for help Q to quit Feel free to customize this to something similar Select one the following: C for coffee T for tea H for help Q to User entry in Awesome...select one the following coffee items: L for latte M for mocha E for espresso x to previous menu A second level menu This is specific to user selection at the main level menu Awesome...select one the following coffee items: L for latte M for mocha E for espresso x to previous menu You have selected a Mocha $5.60 Awesome...select one the following coffee items L for latte M for mocha E for espresso x to previous menu Note the coffee menu stays in place even after a valid user selection, giving the user an opportunity to repeat coffee orders What? ...select againl Awesome...select one the followin L for latte M for mocha E for espresso x to previous menu Note that the user's selection is validated and if it is not valid, it is simply ignored to pain the menu again Ok...taking back to main menu Select one the following C for coffee T for tea H for help Q to quit Note that with selection of x, now the user is taken back to main level menu Thank you for using our cafe ordering system! Pen (Xap) Select one the following: An example of a simple console based menu (main level) C for coffee T for tea H for help Q to quit Feel free to customize this to something similar Select one the following: C for coffee T for tea H for help Q to User entry in Awesome...select one the following coffee items: L for latte M for mocha E for espresso x to previous menu A second level menu This is specific to user selection at the main level menu Awesome...select one the following coffee items: L for latte M for mocha E for espresso x to previous menu You have selected a Mocha $5.60 Awesome...select one the following coffee items L for latte M for mocha E for espresso x to previous menu Note the coffee menu stays in place even after a valid user selection, giving the user an opportunity to repeat coffee orders What? ...select againl Awesome...select one the followin L for latte M for mocha E for espresso x to previous menu Note that the user's selection is validated and if it is not valid, it is simply ignored to pain the menu again Ok...taking back to main menu Select one the following C for coffee T for tea H for help Q to quit Note that with selection of x, now the user is taken back to main level menu Thank you for using our cafe ordering system

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

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions