Lab 4
Labs are practice problems which, time permitting, may be started or completed in your lab, and are assessed on correctness only. You are encouraged to collaborate with classmates on this lab, though each member in a group collaborating is expected to contribute equally to the lab.
What to Do
- Log into code.cs50.io using your GitHub account
- Run
update50
in your codespace’s terminal window to ensure your codespace is up-to-date and, when prompted, click Rebuild now - 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 betweenwget
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 executerm 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 betweenwget
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 executerm 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.
- Smiley
If you submit both Smiley and Volume, we’ll record the higher of your two scores.