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.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,13 @@ 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!
Enjoy the learning process!

## Conclusion
Me and my partner played Stump the Chump and in the end the score was 8-9, he won, I was the chump.
We decided to make the game more interesting and open more opportunities for stumping by making a simple array and printing all of the values inside using a for loop.
The first round a kept it simple, I just replaced the L in println with an uppercase I (printIn) but since it makes the typo pop up in red it was pretty easy to catch.
The second round I made things a little more difficult by replacing public class with public main, and he ended up using the compiler to find the issue, so you could say he was a little bit of a chump here. If he made sure to keep closer attention to the syntax used he would've been able to catch the issue.
The third round I replaced the int in the for loop with "var" hoping he wouldn't catch it. It took him some time but he eventually found it.
The fourth round I replaced all of the Ws with double Vs, but it ended up being way more obvious than I thought.
The fifth round I just put a lot of typos in various places. It took him a little time, but he figured it out.
11 changes: 11 additions & 0 deletions src/Date.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
public class Date {
public static void main(String[] args) {
String day = "Friday";
int date = 26;
String month = "January";
int year = 2024;

System.out.println("The date in American Format is " + day + ", " + month + " " + date + ", " + year);
System.out.print("The date in European Format is " + day + ", " + year + " " + month + ", " + date);
}
}
13 changes: 13 additions & 0 deletions src/StumpTheChump.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
import java.util.ArrayList;

public class StumpTheChump {
// Initially working program.
public static void main(String[] args) {
System.out.println("Hi Chump, can you be stumped?");
System.out.println("These are the chumps...");
ArrayList<String> chumps = new ArrayList<>();
chumps.add("Joseph");
chumps.add("William");
chumps.add("Sebastian");
chumps.add("Ibrahim");

for (int i = 0; i < chumps.size(); i++)
System.out.println(chumps.get(i));

}
}