We've seen built in data types, input and output, making decisions with conditionals as well as some looping. We've also identified two interesting data structures: the array and the hash.
Challenge yourself to create programs for the following situations.
- Write a program that verifies whether someone can vote based on their supplied age.
- Write a program that plays back the message a user supplied.
- Write a program that adds up five user-supplied numbers.
- Make a hash for the people at your table, where the key is their name and the value is their favorite color.
- Make an array of the months in the year.
When programs get big, they get disorganized and hard to read. Next we'll look at how to keep things tidy with functions and classes.
Go on to Overview: Organizing