Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ HINT: CR Computer Science Discord groups are a great way to play this game remot
- Opponent gets a point if the error isn't found.

**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 created a program to display the current time. However, there were several errors, including not capitalizing System, placing quotation marks around an intiger variable, missing a ;, missing a space, and capitalizing Static. My partner was able to find all of the errors and correct the program. Starting with capitalizing System and not Static as well as adding a missing ;, the program would run, but the output would still be incorrect. After this he was able to see the unneccessary quotation marks and missing space in the output and corrected those errors as well. I did this purposly so that the program would still run, but contain errors, making it more difficult to solve.
---

## Part 2: Date Display Program
Expand Down
7 changes: 7 additions & 0 deletions src/StumpTheChump.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@ public class StumpTheChump {
// Initially working program.
public static void main(String[] args) {
System.out.println("Hi Chump, can you be stumped?");
int hour = 5;
int minute = 55;
System.out.print("the current time is ");
System.out.print(hour);
System.out.print(":");
System.out.print(minute);
System.out.println(".");
}
}
22 changes: 22 additions & 0 deletions src/date.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
public class date {
public static void main(String[] args) {
System.out.println("Hello, World!");
String day = "Thursday";
int date = 26;
String month = "January";
int year = 2024;
System.out.print("Today's date it ");
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(date);
System.out.print("/");
System.out.print(month);
System.out.print("/");
System.out.print(year);}
}