Software Development (CSC 321 2016F) : EBoards

CSC321.01 2016F, Class 02: Getting Started with Ruby


Overview

Preliminaries

Admin

Notes

Homework

Good Things To Do

Note

Questions

Ruby

What's something familiar?

What's something new and exciting you've discovered about Ruby?

How does Ruby handle a programmer's need for multiple inheritance?

What is something particularly confusing or puzzling in the Codecademy tutorial?

Other comments ...

Some Ruby Problems

Write sums_to_n?(vals,val) that returns true if any two distinct values from vals (a list of values) sums to val.

Write multiple_of_4?(bitstring) that takes a string of 0's and 1's (representing an unsigned integer) as input and returns true if the string represents an integer divisible by four.

Write starts_with_consonant?(str) that determines if a string starts with a consonant.