Assignemnt #89 and Baby Black Jack Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: Baby Black Jack /// File Name: babyblackjack.java /// Date Finished: 3/14/2016 import java.util.Random; public class BabyBlackJack { public static void main( String[] args ) { Random r = new Random(); int[] label = new int[4]; System.out.println("Baby Blackjack!"); for (int i = 0; i < 4; i++) { label[i] = r.nextInt(10)+1; } System.out.println("You drew "+label[0]+" and "+label[1]+"."); System.out.println("Your total is "+(label[0]+label[1])+"." ); System.out.println("The dealer drew "+label[2]+" and "+label[3]+"."); System.out.println("Dealer's total is "+(label[2]+label[3])+"." ); if ( (label[0]+label[1]) > (label[2]+label[3]) ) System.out.println("YOU WIN!"); else if ( (label[0]+label[1]) < (label[2]+label[3]) ) System.out.println("YOU LOSE!"); else System.out.println("TIE!"); } }