Assignemnt #86 Picture Menu!
Code
//Name:JJ Deng
///Period: 6
///Program Name: Picture Menu
///File Name: PictureMenu.java
///Date Finished: 3/2/16
import java.util.Scanner;
public class PictureMenu
{
public static void main( String[] args )
{
Scanner JJ = new Scanner(System.in);
int choice;
System.out.println( "1. Duck" );
System.out.println( "2. Fish" );
System.out.println( "3. Dog" );
System.out.println( "4. Snail" );
System.out.print( "\nWhich animal to draw? " );
choice = JJ.nextInt();
System.out.println();
if ( choice == 1 )
{
Duck();
Duck();
}
else if ( choice == 2 )
{
Fish();
}
else if ( choice == 3 )
{
Dog();
}
else if ( choice == 4 )
{
Snail();
}
else
{
System.out.println( "Sorry, that wasn't one of the choices." );
}
System.out.println( "\nGoodbye!" );
}
// by adding a second Duck it makes the picture appear twice
public static void Duck()
{
System.out.println("#############################################");
System.out.println("############__---~~~~~|~~~~~--__#############");
System.out.println("########.-~~ | ~~-.########");
System.out.println("#####.-~ .-~~~~-. | ~-.#####");
System.out.println("####/ { o }| \####");
System.out.println("###/ / / | \###");
System.out.println("##| `--r' { | ,___.-', |##");
System.out.println("##| / ~-| ', |##");
System.out.println("##|---------{---------|----------'--------|##");
System.out.println("##| \ | / |##");
System.out.println("##| \ | / |##");
System.out.println("###\ ~ ~~~~~~~|~~~~~~~~~ ~ /###”);
System.out.println("####\ ~ ~ ~ ~ ~ | ~ ~ ~ ~ ~ ~ /####”);
System.out.println("#####`-_ ~ ~ ~ ~ ~|~ ~ ~ ~ ~ ~ _-'####”);
System.out.println("########`-__ ~ ~ ~ | ~ ~ ~ ~ __-'#######”);
System.out.println("############~~---_____|_____---~~############”);
System.out.println("#############################################”)
}
public static void Fish()
{
System.out.println("o o o o");
System.out.println(" o ___/|__ o o o o");
System.out.println("o _/ \ /| o o ___/|__ o");
System.out.println("/ @ \\ \/ | o o _/ \ /| o ___/|__");
System.out.println("\_ // /\ | o ___/|__ / @ \\ \/ | o _/ \ /|");
System.out.println(" \_______/ \| o _/ \ /| \_ // /\ | o/ @ \\ \/ |");
System.out.println(" / @ \\ \/ | \_______/ \| \_ // /\ |");
System.out.println(" \_ // /\ | \_______/ \|");
System.out.println(" \_______/ \|");
}
public static void Dog()
{
System.out.println(" _____^_");
System.out.println(" | | \");
System.out.println(" \ / ^ |");
System.out.println(" / \_/ 0 \");
System.out.println(" / \");
System.out.println("/ ____ 0");
System.out.println("/ / \___ _/");
}
public static void Snail()
{
System.out.println(" /^\ /^\");
System.out.println(" { O} { O}");
System.out.println(" \ / \ /");
System.out.println(" // // _------_");
System.out.println(" // // ./~ ~-_");
System.out.println(" / ~----~/ / \");
System.out.println("/ : ./ _---_ ~-");
System.out.println("| \________) : /~ ~\ |");
System.out.println("| / | | :~~\ | |");
System.out.println("| | | | \___-~ |");
System.out.println("| \ __/`^\______\. ./");
System.out.println("\ ~-______-~\.");
System.out.println(".| ~-_");
System.out.println("/_____________________________________~~____");
System.out.println("");
}
}
Picture of the output