From 16a8a5c809f673684772d6f2f19d1e8a710d33aa Mon Sep 17 00:00:00 2001
From: Christopher Bohn <bohn@unl.edu>
Date: Sat, 23 Sep 2023 12:34:53 -0500
Subject: [PATCH] Placed Parson's Problem in the starter code

---
 .../cse/soft160/conditionals/Scramble.java    | 29 ++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java b/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java
index f0c4489..edc29bc 100644
--- a/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java
+++ b/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java
@@ -4,6 +4,33 @@ import java.util.Scanner;
 
 public class Scramble {
 	public static void main(String... arguments) {
-		// [write code here]
+		// REARRANGE THE CODE TO SOLVE THE PROBLEM
+		// DO NOT ADD, REOVE, OR MODIFY ANY OF THE LINES
+		// BE SURE TO RUN THE SOURCE FORMATTER WHEN YOU'RE DONE
+		System.out.println("The median is " + thirdValue + ".");
+		System.out.println("The median is " + thirdValue + ".");
+		System.out.println("The median is " + secondValue + ".");
+		System.out.println("The median is " + secondValue + ".");
+		System.out.println("The median is " + firstValue + ".");
+		System.out.println("The median is " + firstValue + ".");
+		System.out.print("Enter third value: ");
+		System.out.print("Enter second value: ");
+		System.out.print("Enter first value: ");
+		scanner.close();
+		Scanner scanner = new java.util.Scanner(System.in);
+		int thirdValue = Integer.parseInt(scanner.nextLine());
+		int secondValue = Integer.parseInt(scanner.nextLine());
+		int firstValue = Integer.parseInt(scanner.nextLine());
+		if (secondValue > thirdValue) {
+		if (secondValue < thirdValue) {
+		if (firstValue > secondValue) {
+		} else if (firstValue > thirdValue) {
+		} else if (firstValue < thirdValue) {
+		} else {
+		} else {
+		} else {
+		}
+		}
+		}
 	}
 }
-- 
GitLab