diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..cbbff6a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 931badb..8d9aec2 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ HINT: CR Computer Science Discord groups are a great way to play this game remot **After 5 rounds, modify this README.md with a paragraph describing your attempt to stump your partner and the steps your partner took to identify and correct the error or the steps you think they should have used if they didn't solve the problem.** +- I posted my StumptheChump challenge onto the class forum. The errors I intentionally put in were "in" instead of "out", a decimal instead of an integer for the first variable commandnd, no ";" in one of the variable commands, "Int" instead of "int", and system instead of System. --- ## Part 2: Date Display Program diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..fbcad94 --- /dev/null +++ b/src/Date.java @@ -0,0 +1,34 @@ +/** + * + * @author Trevor Hartman + * @author Eliot Rodriguez + * + * @since version 1.0 + * January 23, 2024 + * + */ +public class Date { + static String day = "Tuesday"; + static String month = "January"; + static int date = 23; + static int year = 2024; + + public static void main(String[] args) { + System.out.print(day); + System.out.print(", "); + System.out.print(month); + System.out.print(" "); + System.out.print(date); + System.out.print(", "); + System.out.print(year); + System.out.println(); + System.out.print(day); + System.out.print(", "); + System.out.print(date); + System.out.print(" "); + System.out.print(month); + System.out.print(", "); + System.out.print(year); + } + +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..c83f272 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,11 @@ public class StumpTheChump { - // Initially working program. public static void main(String[] args) { - System.out.println("Hi Chump, can you be stumped?"); + System.in.println("Hi Chump, can you be stumped?"); + int x = 35.0; + int y = 15 + Int z = x+y; + system.out.println(z); + } + }