Lab 4

What to Do

  1. Log into code.cs50.io using your GitHub account
  2. Run update50 in your codespace’s terminal window to ensure your codespace is up-to-date and, when prompted, click Rebuild now
  3. Submit one of:
    • Smiley
      Getting Started

      Start by clicking inside your terminal window, then execute cd by itself. You should find that its “prompt” resembles the below.

      $

      Click inside of that terminal window and then execute

      wget https://cdn.cs50.net/2022/fall/labs/4/smiley.zip

      followed by Enter in order to download a ZIP called smiley.zip in your codespace. Take care not to overlook the space between wget and the following URL, or any other character for that matter!

      Now execute

      unzip smiley.zip

      to create a folder called smiley. You no longer need the ZIP file, so you can execute

      rm smiley.zip

      and respond with “y” followed by Enter at the prompt to remove the ZIP file you downloaded. Finally, right-click or control-click on the smiley folder and click “Open in CS50 Lab”. You should see the specification for this problem on the left-hand side and its distribution code on the right-hand side.

    • Volume
      Getting Started

      Start by clicking inside your terminal window, then execute cd by itself. You should find that its “prompt” resembles the below.

      $

      Click inside of that terminal window and then execute

      wget https://cdn.cs50.net/2022/fall/labs/4/volume.zip

      followed by Enter in order to download a ZIP called volume.zip in your codespace. Take care not to overlook the space between wget and the following URL, or any other character for that matter!

      Now execute

      unzip volume.zip

      to create a folder called volume. You no longer need the ZIP file, so you can execute

      rm volume.zip

      and respond with “y” followed by Enter at the prompt to remove the ZIP file you downloaded. Finally, right-click or control-click on the volume folder and click “Open in CS50 Lab”. You should see the specification for this problem on the left-hand side and its distribution code on the right-hand side.

If you submit both Smiley and Volume, we’ll record the higher of your two scores.