Assignemnt #56 Fortune Cookie

Code

    ///Name: Morgan Kaplan
    ///Period: 5
    ///Project Name: Fortune Cookie
    ///File Name: FCookie.java

import java.util.Random;

public class FCookie
{
	public static void main ( String[] args )
	{
		Random r = new Random();

		int choice = 1 + r.nextInt(6), n1 = 1 + r.nextInt(54), n2 = 1 + r.nextInt(54), n3 = 1 + r.nextInt(54), n4 = 1 + r.nextInt(54), n5 = 1 + r.nextInt(54), n6 = 1 + r.nextInt(54);
		String response = "";

		if ( choice == 1 )
			response = "You will soon find yourself floating on a migical cloud.  You are greeted my fairies who give you foot massages and style your leg hair.  In other words you're on LSD.";
        else if ( choice == 2 )
			response = "You soon find yourself having strange cravings for human feces";
		else if ( choice == 3 )
			response = "No one around you understands you, so you mate with an elephant and join peta";
		else if ( choice == 4 )
			response = "You will literally morph into a butt.  Like your entire body will become a butt.";
		else if ( choice == 5 )
			response = "You will marry your Grandma";
		else if ( choice == 6 )
			response = "You will develop a rather perculiar addiction to toe fungus";

		System.out.println( "Fortune Cookie SAYS: " + response );
        System.out.println ( " " + n1 + ", " + n2 + " " + n3 + " " + n4 + " " + n5 + " " + n6 + " ");
        }
}
    

Picture of Output

Assignment 56