Homework

Exercise

Finish the exercises from class

Exercise

Read Sections 1-5 of Ruby in 100 minutes

Exercise

  1. Clone down https://github.com/code61/ruby1.
  2. Run bundle install on the command line.
  3. Open hello_you.rb in vscode. Try running the program on the commandline, by typing ruby hello_you.rb. You’ll notice it currently just prints whatever you type as your name. Change the code so that it says “Hello YOUR_NAME” instead.
  4. Run ruby test_hello_you.rb to check that you got step 3 right.
  5. Do the same with advanced_hello.rb - read the file and adjust the program until ruby test_advanced_hello.rb works
  6. Do the same with divide_cake.rb


Prev