Explore projects
-
Print the lyrics to the Christmas carol “The Twelve Days of Christmas,” taking advantage of the repetition in the song.
Updated -
Turned the exercise on its head because I’m a Celsius kinda guy.
Updated -
-
Given a list of integers, use a vector and return the mean (the average value), median (when sorted, the value in the middle position), and mode (the value that occurs most often; a hash map will be helpful here) of the list.
Updated -
Rust Book Exercises / Chapter 8 / Pig Latin
MIT LicenseConvert strings to pig latin. The first consonant of each word is moved to the end of the word and “ay” is added, so “first” becomes “irst-fay.” Words that start with a vowel have “hay” added to the end instead (“apple” becomes “apple-hay”). Keep in
Updated -
Rust Book Exercises / Chapter 8 / Departments
MIT LicenseUsing a hash map and vectors, create a text interface to allow a user to add employee names to a department in a company. For example, “Add Sally to Engineering” or “Add Amir to Sales.” Then let the user retrieve a list of all people in a department.
Updated