Problem Set 0


Due Friday, January 12 at 4: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: Sign 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 will be added to both automatically after you are officially registered for the class. Auto-adds happen once daily so it may take up to 24 hours. (If you can't wait 24 hours, you may manually add yourself to Ed here and Gradescope here with the code NPZ27N.)

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 2021. We are using a more up-to-date version of Qt Creator than the version we used last year. As a result, if you took CS106B in the past, 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

Step Five: Run the Starter Code

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 Six: Submit Everything!

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

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

If you are running into permissions issues, please make sure you are logged in to your @stanford.edu account.

This form will ask for the number from Step 5, 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!