Problem Set 0


Due Friday, June 28 at 6:00 pm Pacific


Welcome to CS103! This assignment is designed to help you get your development environment set up so that you can compile, run, and debug C++ programs. There isn't any actual programming or involved. It’s mostly a way for us to ensure everyone has a working development environment before the first major problem set goes out on Friday.

This assignment must be completed individually. Working in pairs is not permitted.

Step One: Check that you are signed up for GradeScope and EdStem

Aside from Problem Set 0 (this assignment), all assignment submissions in this course will be done through GradeScope. Check out the syllabus for details about how to submit work online. EdStem is our Q&A forum for the quarter. You should have already been added to both after enrolling in the course. If you have not been added, you may manually add yourself to Ed here and Gradescope here with the code R7ZXNY.

Step Two: Read About the Honor Code

You are required to read our document on the Stanford Honor Code before submitting assignments in this class. Take a minute to read over it before proceeding to the next steps.

Step Three: Download and Install Qt Creator

Your first task is to download and install Qt Creator, the development environment that we'll be using in CS103 this quarter. To do so, visit Stanford's Qt Creator installation guide and follow the instructions there. If you run into trouble installing Qt Creator, don't panic! There’s a large troubleshooting guide available through that link, and if that fails, feel free to ask for help on EdStem or in office hours.

The instructions for installing Qt Creator are the same here as they are for CS106B in Fall 2023. If you took CS106B in Fall 2023 or later, you are all good to go. If you took CS106B longer ago than that, you will need to uninstall Qt Creator from your system and then use the instructions above to install the newest version.

Step Four: Download the Starter Files

Now that you've got Qt Creator set up and ready to go, you can start compiling and running C++ programs! We will configure a starter project with the files needed for each assignment and post it in the form of a ZIP archive.

To help you get some practice importing and building projects, download the starter files for this assignment using the link below:

📦 PS0 Starter Files

Then, double-click the NameHash.pro file to open the project in Qt Creator. Build and run the program you've just downloaded. It will ask you to enter your (preferred) first and last names. When you do, it will give back a hash code, a special number associated with your name. You can think of your hash code as a “fingerprint” associated with your name that's unlikely to be the same as anyone else's fingerprint. Write this number down; you'll need it to complete the assignment!

Step Five: Answer Some Questions

Once you've finished everything, fill out the form at the following URL:

đź“‹ Submit Google form: https://forms.gle/PKXYhYmsGa4ijX3N9

This form will ask for the number from Step 4, a quiz on the Stanford Honor Code as it applies in CS103, plus some other questions to help get set up logistically.

And that's it! You're done with setting up the necessary tools for this class and ready to rizz up some mathematical theorems!