From 41c42844f307280073c5275537d53b0d434a21f3 Mon Sep 17 00:00:00 2001 From: BFristoe Date: Sat, 27 Jan 2024 17:22:48 -0800 Subject: [PATCH 1/2] Edited StumpTheChump for challenges with partner Created Date program Edited README --- README.md | 13 ++++++++++++- src/Date.java | 23 +++++++++++++++++++++++ src/StumpTheChump.java | 7 ++++++- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 src/Date.java diff --git a/README.md b/README.md index 931badb..0d8c68b 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,15 @@ Just as you did in the first lab (Reference the Lab video in your Week 1 module) 4. Then issue a Pull request to my instructor repo 5. **Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.** -Enjoy the learning process! \ No newline at end of file +Enjoy the learning process! + +## Lab 1, Part 1 +- I set up the StumpTheChump program with and error in the print line, did not use () around the x when I had it print. +- Code threw error of variable already defined. +- Partner was able to figure out that something was wrong with the print line, but could not determine what exactly was wrong. +- 1 point for me +- Next I changed the program so that it had a comment line with the right code to input. +- Partner came up with several ways to meet the challenge. +- 2 points for Partner +- We ran out of ability to continue working on further problems together. +- Edited Readme. \ No newline at end of file diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..87d04fd --- /dev/null +++ b/src/Date.java @@ -0,0 +1,23 @@ +public class Date { + // Little program to show the date. + + public static void main(String [] args) { + String day; + String date; + String month; + String year; + day = "Saturday "; + date = "27 "; + month = "January "; + year = "2024 "; + + // System.out.print (day); + // System.out.print (month); + // System.out.print (date); + // System.out.println (year); + System.out.print (day); + System.out.print (date); + System.out.print (month); + System.out.println (year); + } +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..18ee544 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,11 @@ public class StumpTheChump { // Initially working program. + // Make this say that you can't be stumped so easy. public static void main(String[] args) { - System.out.println("Hi Chump, can you be stumped?"); + system.out.println("Hi Chump, can you be stumped?"); + String x; + // x = "I have stumped the Chump."; + x = "You cant stump me!"; + System.out.print (x); } } From e46e86425d751aa37e4e98303fb1f86ea937b0a8 Mon Sep 17 00:00:00 2001 From: BFristoe Date: Sat, 27 Jan 2024 17:23:16 -0800 Subject: [PATCH 2/2] Edited StumpTheChump for challenges with partner Created Date program Edited README --- src/StumpTheChump.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index 18ee544..f58f106 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -2,7 +2,7 @@ public class StumpTheChump { // Initially working program. // Make this say that you can't be stumped so easy. public static void main(String[] args) { - system.out.println("Hi Chump, can you be stumped?"); + System.out.println("Hi Chump, can you be stumped?"); String x; // x = "I have stumped the Chump."; x = "You cant stump me!";