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.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions src/Date.java
Original file line number Diff line number Diff line change
@@ -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);
}

}
9 changes: 7 additions & 2 deletions src/StumpTheChump.java
Original file line number Diff line number Diff line change
@@ -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);

}

}