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

My first attempt to stump Jaime Ortiz was that I changed the main(string) name to mian(string) to see if he would pick up on the misspelled word in the code, he did, two points for him. My Second attempt to stump Jaime was that I changed the starting curly bracket to a parenthesis, he did not see that one coming, plus one point to me. A step that jaime could have used is looking at each group and making sure there are both opening and closing brackets. The third attempt I took away the parentheses completely away from the println. The fourth attempt I took away the semicolon rendering the code useless but jaime found it very quickly. The last way I tried to stump Jaime was by changing the public class name to lowercase stumpthechump, this would not be able to run because it is not the same as the declared file name 'StumpTheChump'. Jaime instantly saw that the names did not match so he swiftly changed it.

---

## Part 2: Date Display Program
Expand Down
29 changes: 29 additions & 0 deletions src/Date.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
public class Date {

public static void main(String[] args) {
System.out.println("The Date is,");
String day, date, month, year; //defining variables

day = "Friday";
date = "26"; // Assigning a value to each variable
month = "January";
year = "2024";

//System.out.println(day); //checking to see if all variables print correctly
//System.out.println(date); //printing Day, Date, Month, Year
//System.out.println(month);
//System.out.println(year);

// System.out.println("Day: " + day);
//System.out.println("Date: " + date); //printing Variable and the corresponding date
//System.out.println("Month: " + month);
//System.out.println("Year: " + year);

System.out.println("Standard American Format: " + day +", " + month + " " + date +", " + year);
//displaying American format

System.out.println("European Format: " + date +", " + month +", " + year);
//displaying European format
}

}