Assignemnt #59 Three Card Monte

Code

    ///Name: Morgan Kaplan
    ///Period: 5
    ///Project Name: Three Card Monte
    ///File Name: Card.java
      
      
import java.util.Random;

import java.util.Scanner;

public class Card
{
    public static void main( String[] args )
    {
        Scanner momo= new Scanner(System.in);
            
        Random r =new Random();
        int choice=1+ r.nextInt(3), guess;
        
        System.out.println ( " You slide up to Fast Eddie's card table and plop down your cash. He glances at you out of the corner of his eye and starts shuffling. He lays down three cards.  Which one is the ace? ### ### ###. number 1, 2, or 3 ");
        guess=momo.nextInt();
            
        if ( guess==choice )
		{
			System.out.println( " wow youre right." );
            }
       else 
		{
			System.out.println( "Wrong it was " + choice + "." );
            }
    }
}   

Picture of Output

Assignment 59