Question: Implement a very basic menu driven, console based Java application. See the annotated storyboard sample for more information on how your application should look and
Implement a very basic menu driven, console based Java application.
See the annotated storyboard sample for more information on how your application should look and function. There is no other specification for this problem, meaning you have lot of flexibility on how it should work as long as the supports more than one level of menus and does something, however trivial it may be. Or, you could simple implement what is shown in the attached sample:simpleconsolemenudrivenprogram.pdf
Suggestion : I would suggest that you create a subroutine to do all of the menus and pass in a String array with the specific menu items. If you use the first letter of each menu item and keep each first letter unique then it's very simple to handle not only all the menus shown in the sample but also easily handle the "Tea" menu. You should check to make sure the user only chooses an item in that menu. Your main() can then simply manage a switch /if-else to process the unique commands based on what character was returned.
The sample shows a price for one item. Each item should have a unique price. You don't have to total it up, but that would be nice and is simple to do.
The sample only shows the Coffee menu. You should also implement the Tea menu with some logical choices.
Requirements : Class and .JAVA file must be named ConsoleMenu - the capitalization is important.Donotdeclare a package (use /** in eclipse)Make use of the following features:While loopsJavadoc commentingSwitch statement or if/elsemethods with parametersYoumustuse the debugger while developing the program & attach a screenshot for proof.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
