SC‐Homework‐06 - TheEvergreenStateCollege/upper-division-cs-23-24 GitHub Wiki

Software Construction, Homework 06

Part 1. Reading and Quizzes (20 points)

10 points per chapter.

Read and do the exercises in The Rust Interaction Book for these two chapters:

Part 2. Rustlings

Part 2. Rustlings (21 points)

3 points per exercise.

In your GitPod workspace, change into the sc-24sp/rustlings directory and run the command

rustlings watch

You can open another terminal and change to the same sc-24sp/rustlings directory to run the command

rustlings hint <exercise_file_name>

as needed.

As shown in the screenshot below, complete the 7 Rustlings exercises by typing into the files

  • 14_generics
  • 15_traits

image

In GitPod, your files are autosaved as you type, and the rustlings watch terminal will automatically recompile and let you know whether your current exercise file is complete, or the compile error in the next file if you remove the comment line // I AM NOT DONE

Do not add or commit your rustlings work. The rustlings directory is gitignore'd.

Checkoff

Create a dev diary here if you don't have one first. Add a dev diary entry with screenshots of your quizzes from the Rust Book after you pass them, and add markdown text explaining your answer to each quiz question.