emilycritter / tiy-hw04-ruby-basics

TIY Week 2 HW Assignment - See README.md for assignment instructions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Fundamentals

Ruby Basics

Due Wednesday, February 10, 2016

This assignment will walk you through several of the most used ruby types and get your familiar with the ruby syntax

Objectives

Learning Objectives

Understand how to use documentation and send messages to objects in ruby

Performance Objectives
  • RubyDocs
  • the ruby binary
  • irb

Details

Deliverables

Link to a GitHub Repo containing the basics.rb file

Requirements

The file should run without any errors or warnings and should only print true

Normal Mode

Only change the left hand side of each expression to make it true.

Difficult Mode

The way these questions are written reveals a lot of duplication. Add a question method that takes two arguments, the prompt for the question, and the body of the question. Use that method to ‘DRY up’ the quiz. Requirements from Normal Mode must continue to be met.

Epic Mode

Data structures are awesome. Lets turn our list of questions into a single data structure and print out the answers by looping (or iterating) through them. Make sure each question is labeled with a number automatically. Requirements from Normal Mode must continue to be met.

Additional Resource

basics.rb can be found and downloaded from here

Tips
  • This assignment requires some googling and looking at the ruby docs.
  • Try things out in IRB to see how they work. Its much faster than going directly to the file.

About

TIY Week 2 HW Assignment - See README.md for assignment instructions.


Languages

Language:Ruby 100.0%