0

For my final project I have to develop a functional flowchart and write a menu-driven Java program, using control constructs and user-defined functions.

My question is, what the heck is a menu-driven program?

2
Contributors
3
Replies
7
Views
5 Years
Discussion Span
Last Post by godzab
0

Its like a main menu in a movie.
ex.

Scanner s = new Scanner(System.in);
System.out.print("Would you like to \n 1.Eat\n 2.Poop\n 3.or sleep"); // This is the menu-driven part
String input = s.nextLine();

switch(input) //you can only switch strings in JDK7
{
    //code goes here
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.