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?

Its like a main menu in a movie.

Scanner s = new Scanner(;
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

ok got it.

If your problem is solved, mark it as solved.