// Allison Obourn, CSE 142 // Prompts the user with addition puzzles comprised of // 2 - 5 operands until the user gets 3 wrong. //INCOMPLETE: this program will be finished on Wednesday. import java.util.*; public class AdditionGame { public static void main(String[] args) { Scanner console = new Scanner(System.in); Random rand = new Random(); // while wrong < 3 // generate 2 - 5 numbers // add them together to find out solution // get user guess // if guess the same as my solution // points++ // if the guess is different // error message // wrong++ // print points int operands = rand.nextInt(4) + 2; int value = rand.nextInt(10) + 1; System.out.print(value); int sum = value; for (int i = 1; i < operands; i++) { value = rand.nextInt(10) + 1; System.out.print(" + " + value); sum += value; } } }