CSV library basics
📖 Scenario: You work in a small bookstore. You have a CSV file listing books and their prices. You want to read this file and find books cheaper than a certain price.
🎯 Goal: Build a Ruby program that reads a CSV file of books and prices, filters books cheaper than a set price, and prints their titles.
📋 What You'll Learn
Use Ruby's CSV library to read data
Create a variable for the price limit
Use a loop to filter books cheaper than the limit
Print the titles of the filtered books
💡 Why This Matters
🌍 Real World
Reading and filtering CSV data is common in many jobs like sales, inventory, and data analysis.
💼 Career
Knowing how to use Ruby's CSV library helps you handle real data files and automate tasks in many programming jobs.
Progress0 / 4 steps