Lab 4
Labs are practice problems which, time permitting, may be started or completed in your section, 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
update50in 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
cdby 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.zipfollowed by Enter in order to download a ZIP called
smiley.zipin your codespace. Take care not to overlook the space betweenwgetand the following URL, or any other character for that matter!Now execute
unzip smiley.zipto create a folder called
smiley. You no longer need the ZIP file, so you can executerm smiley.zipand respond with “y” followed by Enter at the prompt to remove the ZIP file you downloaded. Finally, right-click or control-click on the
smileyfolder 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
cdby 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.zipfollowed by Enter in order to download a ZIP called
volume.zipin your codespace. Take care not to overlook the space betweenwgetand the following URL, or any other character for that matter!Now execute
unzip volume.zipto create a folder called
volume. You no longer need the ZIP file, so you can executerm volume.zipand respond with “y” followed by Enter at the prompt to remove the ZIP file you downloaded. Finally, right-click or control-click on the
volumefolder 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.