Link to a GitHub Repository with part1.rb
and part2.rb
- Create an array of the words in the sentence below
- Find how many words have a length equal to 5
"Tacos must not have lettuce Only meat and cheese and salsa"
movies = []
movies << {
title: "Forest Gump",
budget: 55,
stars: ["Tom Hanks"]
}
movies << {
title: "Star Wars",
budget: 11,
stars: ["Mark Hamill", "Harrison Ford"]
}
movies << {
title: "Batman Begins",
budget: 150,
stars: ["Christian Bale", "Liam Neeson", "Michael Caine"]
}
movies << {
title: "Titanic",
budget: 200,
stars: ["Kate Winslet", "Leonardo DiCaprio"]
}
movies << {
title: "Inception",
budget: 160,
stars: ["Leonardo DiCaprio", "JGL"]
}
- Create an array of movies with budgets less than 100
- Create an array of movies that have Leonardo DiCaprio as a star