Welcome to CS106B! This assignment is designed to help you get your development environment set up and running so that you can compile, run, and debug programs. There isn’t any actual programming involved, and we hope that this doesn’t take you too much time to complete. Remember, you don’t need to understand what the code you’re being asked to run is actually doing just yet. Over the course of the quarter, each of the different parts of this program will be illuminated! This assignment must be completed individually.
Step 1) Install Qt Creator
Your first task is to configure your computer for Qt Creator, the development environment that we’ll be using in CS106B this quarter. Follow the instructions in the Qt Installation Guide for your operating system.
If you run into trouble installing Qt Creator, don’t panic! Yasmine will be holding a Qt Creator help session in CoDa B45 from 2:30-4:30PM PDT after lecture on Friday, January 9th. If you run into issues, you can also post on Ed and we can help you out there.
Step 2) Download starter project
We will configure a starter project with the files needed for each assignment and post it in the form of a ZIP archive. Download the archive and extract all. Double-click the NameHash.pro file to open the project in Qt Creator.
Step 3) Get your files organized for CS106B
In the past, we’ve had students struggle to keep all their files organized, sometimes downloading multiple copies of the starter code, not keeping track of where they store the folder, and accidentally submitting incorrect/blank files (instead of their hard work!). Unfortunately, this has often resulted in 0s on the assignments, because they don’t realize they’ve submitted the incorrect files until well after the deadline. We don’t want this to happen to you, so Yasmine has thrown together a quick video that gives some tips and tricks for staying organized in 106B. It’s very quick, and will save you headaches down the line! The video linked has a demo on MacOS – you can view a Windows equivalent here. If you start the Windows video alongside the MacOS video at time 0:45 (when Yasmine starts screen recording), it should line up with the instructions she is giving verbally.
Step 4) Hash your name
Open the project in Qt Creator and build and run the program. 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 5) Use the debugger
Open the debugger tutorial. This wonderful guide written by Keith Schwarz walks you through using the debugger on the Name Hash program. Follow along with the step-by-step instructions. At some point, you’ll be asked to remember a number. Write this number down; you’ll need it to complete the assignment!
Step 6) Read about the Honor Code
You are required to read our handout CS106B and the Honor Code before submitting assignments. Do this now before proceeding to the final step.
Step 7) Submit
Once you’ve finished everything, fill out the form at the following URL:
- 📋 Submit Google form: https://docs.google.com/forms/d/e/1FAIpQLSeXQbAS9coUxeShBysQ_a5lZh5Ef5k9zqMdgqbZlSv-ZCn73g/viewform?usp=dialog (you must be logged into your Stanford Google account to access the form)
This form will ask for the numbers from Steps 3, 4, and 5, along with some questions about who you are, why you’re awesome, and what your learning environment will look like this quarter. And that’s it! You’re done!