Problem Set 0


Due Friday, April 7 at 2:30 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 and that everyone knows how to submit on GradeScope.

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

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

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 XVR6K5. The Canvas site will be open for "shopping" during the shopping period, but you must ensure you are formally enrolled by the end of it.)

Please note that for security reasons, we do not manually add students to Canvas. If you are waiting on a petition to exceed units cap or something like that, you'll need to find a way to make it work with just the above instructions to access Gradescope and Ed; for example by coming to lectures in person rather than utilizing Canvas videos, or changing your enrollment from another class to CS103, or some other workaround. Sorry about that!

For pset0 (and only pset0), we will let you complete it after the deadline if you enroll late. The whole point is it ensure that you are all properly set up with all your enrollment, accounts, are familiar with honor code policies, etc, so we want to ensure everyone in the class completes it at some point.

The reason that (other than pset0) we do not extend deadlines for late enrollment is that it is students' responsibility to choose a study list in a timely fashion, and it's not fair to students who enrolled on time and are required to complete psets on time. Remember, the quarter system has a very brisk pace, so each week is a whopping 10% of the class. Each pset is only worth about 2%, so, FWIW, taking a 2% grade hit for missing a full 20%+ of the course, is proportionally quite a small penalty.

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. If you took CS106B in Fall 201 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! 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, open them in Qt Creator.

Step Five: Answer Some Questions

The program that you’ve just downloaded contains a quiz on the Stanford Honor Code as it applies in CS103, plus some other questions to help get set up logistically. For one step, you'll need to fill out this form to ensure that you'll be able to complete our class by attending all three exams: https://forms.gle/ExqDEdFbhrpDJhap7. Remember the secret code phrase at the end of the form, you'll need to enter it for one of the QT questions. Compile and run the program to launch the quiz. Answer all the quiz questions, enter your @stanford.edu email address, and the program will automatically generate a completion code in the file res/code.txt.

Step Six: Submit Everything!

Once you've finished everything else, submit the file res/code.txt on GradeScope for Problem Set Zero. If you’ve done everything correctly, you should earn a score of 5/5 and you should receive an email from GradeScope with your score. If not, it means something didn't work correctly with the submission, and you should email the course staff so we can help get things sorted out.

And that’s it! You’re done!