Assignemnt #90 Picture Menu
Code
/// Name: Drew Boxold
/// Period 5
/// Program Name: PictureMenu
/// File Name: PictureMenu.java
/// Date Finished: 3/28/16
import java.util.Scanner;
public class PictureMenu
{
public static void main( String[] args )
{
Scanner kb = new Scanner(System.in);
int choice;
System.out.println( "1. Butterfly " );
System.out.println( "2. Elephant " );
System.out.println( "3. Teddy Bear" );
System.out.println( "4. Snake " );
System.out.print( "\nWhich animal to draw? " );
choice = kb.nextInt();
System.out.println();
if ( choice == 1 )
{
butterfly();
butterfly();
}
else if ( choice == 2 )
{
elephant();
}
else if ( choice == 3 )
{
teddybear();
}
else if ( choice == 4 )
{
snake();
}
else
{
System.out.println( "Sorry, that wasn't one of the choices." );
}
System.out.println( "\nGoodbye!" );
}
public static void butterfly()
{
System.out.println(" .==-. .-==. ");
System.out.println(" \\()8`-._ `. .' _.-'8()/ ");
System.out.println(" (88\" ::. \\./ .:: \"88) ");
System.out.println(" \\_.'`-::::.(#).::::-'`._/ ");
System.out.println(" `._... .q(_)p. ..._.' ");
System.out.println(" \"\"-..-'|=|`-..-\"\" ");
System.out.println(" .\"\"' .'|=|`. `\"\". ");
System.out.println(" ,':8(o)./|=|\\.(o)8:`. ");
System.out.println(" (O :8 ::/ \\_/ \\:: 8: O) ");
System.out.println(" \\O `::/ \\::' O/ ");
System.out.println(" \"\"--' `--\"\" hjw");
}
Picture of the output