title: Beginner Java Programming - Rolling 2 Dice Game
body: <p>I'm trying to create a java program for my class that throws 3 dice. The player rolls the dice and earns a profit in dollars based on the three values obtained. In particular, the profit is equal to the number of even values multiplied by the sum of those values, plus the number of odd values multiplied by the sum of those values. </p>
  
  <p>For example, if the player rolls 4, 5, and 2 we calculate:</p>
  
  <p><strong>2 x 6</strong> (two even values summing to 6)</p>
  
  <p>And</p>
  
  <p><strong>1 x 5</strong> (one odd value summing to 5).
  <strong>So the profit is 12 + 5 = $17.</strong></p>
  
  <p>Here is what I have so far -</p>
  
  <pre><code>import java.util.Scanner;
  public class Maiorca_Hw2
  {
  public static void main (String [] args)
    {
  
    Scanner keyboard = new Scanner (System.in);
    System.out.println("Enter Values of Dice 1");
      d1 = keyboard.nextDouble();
    System.out.println("Enter Values of Dice 2");
      d2 = keyboard.nextDouble();
    System.out.println("Enter Values of Dice 3");
      d3 = keyboard.nextDouble();
  
    double numbers = 1,2,3,4,5,6;
    double profit, dice, d1, d2, d3, oddsum, evensum;
  
    if (d1 == 1 || d1 == 3 || d1 == 5)
      oddsum = 
  </code></pre>