Assignemnt #57 and Roll The Dice

Code

  /// Name: Marco Correa
  /// Period: 5
  /// Program Name: RollTheDice
  /// File Name: RollTheDice.java
  /// Date Finished: 12/1/2015

  
    public class RollTheDice {
   

 
      public static void main(String[] args) {
    
          int die1;   
          int die2;   
          int roll;   
        
          die1 = (int)(Math.random()*6) + 1;
          die2 = (int)(Math.random()*6) + 1;
          roll = die1 + die2;
        
          System.out.println("The first die comes up " + die1);
          System.out.println("The second die comes up " + die2);
          System.out.println("Your total roll is " + roll);

      }  
 
  }  
    

Picture of the output

Assignment 57