String Interpolation Exercise

In case you get stuck anywhere, don't be afraid to ask the coaches! They are here to help and will gladly explain everything to you!

Take notes during the exercises. Even if you never look at them again, they will help you memorise things!

  1. Improve your temperature conversion program from last session and your BMI program using string interpolation!

  2. Escape sequences are a way to add characters to your strings that are not printable. One example is the \n escape sequence. Another one is \r. Try it out in IRB like this: puts "A\rB". What does it do?

    How could it be useful in a program? Maybe your coach knows?