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.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ 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.**

## <span style="color:purple">***Stump the Chump Results:***</span>
In an attempt to stump my partner, I first changed the line <span style="color:yellow">public static void main(String[ ] args) {</span> by deleting the word "void" and changing the [] to (). Then I deleted the ';' after the line <span style="color:yellow">System.out.println(y/x)</span> and changed println to print. I then threw in a little integer division with the line <span style="color:yellow">System.out.print(x / y)</span> [sic] and deleted one of the closing "}" from the end of the program.
My partner and I did not have a thorough discussion since this all happened over comments in Canvas, but they were able to find all errors prior to running the program.

---

## Part 2: Date Display Program
Expand Down
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, date, month, year;
day = "Wednesday";
date = "24";
month = "January";
year = "2024";

// System.out.println(day);
// System.out.println(date);
// System.out.println(month);
// System.out.println(year);

System.out.println("Today is " + day + ", " + month + " " + date + "th, " + year + ".");
System.out.println("Today is " + day + ", " + date + " " + month + ", " + year + ".");


}

}
12 changes: 12 additions & 0 deletions src/StumpTheChump.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
public class StumpTheChump {
// Initially working program.
// public static main(String() args) {
// System.out.println("Hi Chump, can you be stumped?");
// int x = 2;
// int y = 4;
// System.out.print(y / x)
// System.out.print(x / y);
//

public static void main(String[] args) {
System.out.println("Hi Chump, can you be stumped?");
double x = 2.0;
double y = 4.0;
System.out.println(y / x);
System.out.println(x / y);
}
}