Problem Set 3
Collaboration on problem sets is not permitted except to the extent that you may ask classmates and others for help so long as that help does not reduce to another doing your work for you, per the course’s policy on academic honesty.
What to Do
- Be sure you’re registered to vote, if eligible! Here’s how.
- 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 Plurality
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/psets/3/plurality.zipfollowed by Enter in order to download a ZIP called
plurality.zipin your codespace. Take care not to overlook the space betweenwgetand the following URL, or any other character for that matter!Now execute
unzip plurality.zipto create a folder called
plurality. You no longer need the ZIP file, so you can executerm plurality.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
pluralityfolder 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. - Submit one of:
- Runoff, if feeling less comfortable
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/psets/3/runoff.zipfollowed by Enter in order to download a ZIP called
runoff.zipin your codespace. Take care not to overlook the space betweenwgetand the following URL, or any other character for that matter!Now execute
unzip runoff.zipto create a folder called
runoff. You no longer need the ZIP file, so you can executerm runoff.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
runofffolder 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. - Tideman, if feeling more comfortable
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/psets/3/tideman.zipfollowed by Enter in order to download a ZIP called
tideman.zipin your codespace. Take care not to overlook the space betweenwgetand the following URL, or any other character for that matter!Now execute
unzip tideman.zipto create a folder called
tideman. You no longer need the ZIP file, so you can executerm tideman.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
tidemanfolder 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.
- Runoff, if feeling less comfortable
- Submit this form
If you submit both Runoff and Tideman, we’ll record the higher of your two scores.
When to Do It
How to Get Help
- Browse or search for answers on Ed or post your own questions!
- Browse the CS50 Manual Pages for functions that might be useful.
-
Watch Shorts for any topics that you still have questions about.
- Attend office hours!
Advice
- Try out any of David’s programs from class.
- If you see any errors when compiling your code with
make, focus first on fixing the very first error you see, scrolling up as needed. If unsure what it means, try askinghelp50for help. For instance, if trying to compileplurality, andmake pluralityis yielding errors, try running
help50 make pluralityinstead!