It took me my second time. I ran the code on DCoder, and saw the error message, then, of course, fixed it.
Objective: Engage in a programming challenge with a partner to identify and fix errors in a Java program. Gain points based on the ability to find errors without compiling or with compiler assistance.
HINT: CR Computer Science Discord groups are a great way to play this game remotely!
Instructions:
- Fork this repository to your GitHub account.
- Clone the forked repository locally to your machine.
- Create a new branch named Feature01.
Stump the Chump:
- Play with a partner.
- Start with a correctly compiling and running program.
- One player looks away while the other adds an error.
- The first player attempts to find and fix the error.
- Points System:
- 2 points: Finding the error without compiling.
- 1 point: Finding the error using the compiler.
- Opponent gets a point if the error isn't found.
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.
Objective: Develop a Java program to display dates in different formats using string concatenation. Practice gradual program development by adding statements step by step.
Steps:
- Create a new Java file in the src directory named
Date.java
with a Hello World program as a base. - Define variables
day
,date
,month
, andyear
. - Assign values to represent today's date.
- Display each variable's value on separate lines for initial verification.
- Compile and run the program before proceeding.
- Modify the program to display the date in standard American format (e.g., Thursday, July 18, 2019).
- Further modify the program to display the date in European format.
Additional Guidance: For formatting, consider using Java Format Specifiers for formatting your date text.
Just as you did in the first lab (Reference the Lab video in your Week 1 module):
- create a Feature01 branch of your code if you haven't already.
- Commit your working code and changes to your local copy/Feature01 branch
- Push it to your Remote/origin branch (i.e. GitHub: Feature01 -> origin/Feature01)
- Then issue a Pull request to my instructor repo
- Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.
Enjoy the learning process!