From a147394b4cd1f40a6de91155b33db3117cdaa813 Mon Sep 17 00:00:00 2001 From: Jaime Date: Thu, 25 Jan 2024 21:52:32 -0800 Subject: [PATCH] Changes by john --- .idea/misc.xml | 2 +- README.md | 3 +++ src/Date.java | 19 +++++++++++++++++++ src/StumpTheChump.java | 3 ++- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/Date.java 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..0cd1eb6 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ 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.** +## Assignment Paragraph with John Matney +For the first attempt I was up to change the code so I changed the worst System to system and John figured it out pretty quickly without the compiler, the steps he took was looking for the correct punctuation that is typically used in these types of source code. For the second attempt John was up to change the code, during his attempt he changed the first curly bracket to a regular parenthesis. I was unable to find it because I failed to figure out that the parenthesis replaced something, instead I placed an opposite facing parenthesis to try and fill it in. For the third attempt I was up to make changes so I decided to change the word println to Println, John figured it out pretty quickly. The steps he took to figure this out was to look at all the punctuation again like he did with the System change. For the fourth attempt John was up to change the code so he changed the semicolon to a colon, I figured this one out by using the compiler to be honest that one kind of told me that it was missing a semicolon. For the fifth attempt John changed the name StumpTheChump to stumpthechump, I figured it out without the compiler this time and then I changed it to what it was regularly. I figured this out by looking for punctuation due to me constantly changing the punctuation of the words myself. + --- ## Part 2: Date Display Program diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..9a10930 --- /dev/null +++ b/src/Date.java @@ -0,0 +1,19 @@ +public class Date { + + public static void main(String[] args) { + + String day = "Thursday" ; + int date = 25; + String month = "January" ; + int year = 2024; + + System.out.println("Day: " + day); + System.out.println("Date: " + date); + System.out.println("Month: " + month); + System.out.println("Year: " + year); + + System.out.println("American Format: " + day + ", " + month + " " + date + ", " + year); + + System.out.println("European Format: " + date + ", " + month + ", " + year); + } +} \ No newline at end of file diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..c86521a 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,7 @@ public class StumpTheChump { // Initially working program. public static void main(String[] args) { - System.out.println("Hi Chump, can you be stumped?"); + System.out.println("Hi Chump,can you be stumped?"); } } +