Due:

Friday, January 17, 10pm

Submission:

Submit the contents of your repository via Gradescope. See Deliverables below for what to submit.

This is an individual assignment.

The purpose of our first assignment is to make sure everybody is able to set up a working environment and to familiarize yourself with the terminal, shell, and the C compiler, as well as the process of submitting deliverables. As such the steps are identical to Lab 1. Read through the description of Lab 1, on Canvas, or after accepting the Classroom assignment. Complete all the steps in the lab, and submit the Deliverables below. None of the deliverables here should take more than a few minutes to (re-)create.

Note: If you have trouble connecting to login.khoury.northeastern.edu or something else doesn’t work, let us know. Our hope is for everybody get full score on this one.

Reminder of Tasks from Lab 1

  1. Set up access to your Github repositories on Khoury Login and locally

  2. Run at least 10 Linux commands

  3. Modify hello.c in two steps, creating a new Git commit for each.

    1. Modify the provided program so it prints: your first name followed by a newline and your email address followed by a newline. Recompile the program and make sure it runs. Commit and push the file to your Github repository.
    2. After skimming through a C tutorial, make the program print your name and email address 20 times using a for loop.

Deliverables

  1. Copy and Paste the output from the command-line interface of you running 10 different terminal commands above into a file called output.txt (no capitalization, exactly as named.)
    • Include the command line you used to run the command.
    • Do not include any “command not found” results.
    • Make sure to ‘add/commit/push’ this file to the repo in your directory.
  2. Modify the file called hello.c in your repository as instructed in Lab 1.
    • Make sure to ‘add/commit/push’ this file to the repo in your directory after each parts of the task. There should be at least 2 commits for this task in your repo.
    • DO NOT add or commit the executable hello. If you did, remove it in an additional commit.
  3. Take a screenshot of a terminal running a command line text editor (such as Nano, Vim, or Emacs) over SSH with hello.c after you have made it print your name and e-mail.
    • Save the screenshot as editor.png or editor.jpg.
    • Make sure to ‘add/commit/push’ this file to the repo in your directory.
  4. Create a screenshot of your Github repository’s history page (That is, “Commits”) after completing the above steps and save it as repo.png or repo.jpg.
    • Make sure to ‘add/commit/push’ this file to the repo in your directory.

Finally, go to Gradescope and submit a ZIP of your repository. The easiest way to do that is to go on Github and use the “Download ZIP” link under “Code” (see image). You may also connect your Github account to Gradescope and submit directly by pulling from your Github repository. Let us know if you have trouble with any of the steps.

Downloading a ZIP from Github