Lab 0 – Using the enviornment


Lab 0 – Setting Up Your Programming Environment

Goal

Set up your development environment and connect it to GitHub. You’ll:

  • Use VS Code (Windows/Mac)
  • Accept and clone the Lab 0 GitHub Classroom assignment
  • Modify and run a simple program
  • Record your results and push your changes to GitHub

1. Accept the Assignment


2. Set Up Your Local Development Folder

  1. Create a project folder for this course, e.g., DSLabs
  2. Open a terminal or command prompt
  3. Navigate to your new folder: cd path/to/your/DSLabs

3. Clone the Project from GitHub

  1. Open your Lab 0 repository in GitHub
  2. Click the green <> Code button
  3. Select the SSH tab
  4. Copy the SSH URL (use the 📋 copy button)
  5. In your terminal, run: git clone git@github.com:Kenyon-CS/lab-0-learning-github-classroom-expertlearningsystems.git (Use your actual repository link.)
  6. Open the cloned folder in VS Code

4. Modify and Run the Program

  1. Open the main source file (main.cpp or similar)
  2. Modify the output so the anagram results are numbered. Example:
    Anagrams found for the word 'ship':
    1. hips
    2. phis
    3. pish
    4. ship
  3. (Optional Bonus):
    Modify the program to allow choosing between finding anagrams or sub-anagrams. Sub-anagrams use only some of the letters in a word. From “astronomer” you could form: “moon”, “star”, “mare”, etc.

5. Run and Record Results

  • Run your program at least 5 times with different inputs
  • Create a file called testruns.txt
  • Paste in the output from your test runs (copy from terminal)

6. Commit and Push Your Work

  1. In the terminal, navigate to your project folder: cd path/to/your/lab-0-folder
  2. Stage your changes: git add main.cpp testruns.txt
  3. Commit the changes: git commit -m "Updated program and added test run output"
  4. Push to GitHub: git push

7. Submit Your Work

  • Go to GitHub and confirm your project is updated
  • Copy the URL of your repository (e.g., https://github.com/YourUsername/lab-0...)
  • Submit the URL on Moodle

Let me know if you’d like a version formatted for print or a classroom LMS!

Scroll to Top