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

## Lab 1, Part 1
- I set up the StumpTheChump program with and error in the print line, did not use () around the x when I had it print.
- Code threw error of variable already defined.
- Partner was able to figure out that something was wrong with the print line, but could not determine what exactly was wrong.
- 1 point for me
- Next I changed the program so that it had a comment line with the right code to input.
- Partner came up with several ways to meet the challenge.
- 2 points for Partner
- We ran out of ability to continue working on further problems together.
- Edited Readme.
23 changes: 23 additions & 0 deletions src/Date.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
public class Date {
// Little program to show the date.

public static void main(String [] args) {
String day;
String date;
String month;
String year;
day = "Saturday ";
date = "27 ";
month = "January ";
year = "2024 ";

// System.out.print (day);
// System.out.print (month);
// System.out.print (date);
// System.out.println (year);
System.out.print (day);
System.out.print (date);
System.out.print (month);
System.out.println (year);
}
}
5 changes: 5 additions & 0 deletions src/StumpTheChump.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
public class StumpTheChump {
// Initially working program.
// Make this say that you can't be stumped so easy.
public static void main(String[] args) {
System.out.println("Hi Chump, can you be stumped?");
String x;
// x = "I have stumped the Chump.";
x = "You cant stump me!";
System.out.print (x);
}
}