Course Overview1:56 with Jay McGavren
In this course, we're going to use Ruby to create a shopping program for widgets. People often buy them in groups of 50, 100, or more, even though they cost 10 dollars apiece. The widget store needs us to write a program that lets a user type in the number of widgets they want to buy, multiply that by 10 to get the total price, and report the total to the user. They're also thinking that they may need to offer discounts if a user is purchasing a large quantity.
Treehouse has a helpful community forum of teachers and fellow students where you can get help if you're stuck. Here's a link to the Ruby category there:
Studying is a skill! You'll have an easier time in this course, and the courses that follow it, if you follow a few basic strategies. We've put together some videos to help:
In this course, we're going to use Ruby to create a shopping program for widgets. 0:00 What's a widget? 0:04 I don't really know. 0:05 But they sure are popular. 0:06 People often buy them in groups of 50, 100, 0:08 or more even though they cost $10 a piece. 0:11 The widget store needs us to write a program that lets a user type in 0:14 the number of widgets they want to buy, 0:17 multiply that by ten to get the total price and report the total to the user. 0:19 They're also thinking that they may need to offer discounts if a user is purchasing 0:24 a large quantity. 0:28 Sound complicated? 0:29 Don't worry, everything we need to solve this problem is built in to Ruby. 0:30 We'll learn how to output text to the terminal and 0:35 store values the user types in. 0:37 We'll learn how to do arithmetic in Ruby. 0:39 And we'll learn to write Ruby methods that let us break the problem into small chunks 0:42 that we can easily handle. 0:46 Before we get started, we want to make sure you know about all 0:48 the Treehouse features that will help you succeed with this course. 0:51 We've tried to adjust the pace of this material to accommodate everyone. 0:55 But depending on what you know, it's probably going to be too slow for 0:59 you in some places and too fast in others. 1:02 So take a moment to familiarize yourself with the video playback controls. 1:05 You can adjust the playback speed to be faster or slower. 1:10 You can rewind if you need to go over something again. 1:13 And you can pause if there's text on screen that you need time to look 1:16 at more closely. 1:19 On the page for any video in this course, you can click the launch 1:22 works space button to start an environment where you can code along with the video. 1:25 And run your program when you're done. 1:29 Every video page will also have teacher's notes with code samples, 1:32 links to additional reading, troubleshooting tips, or 1:36 additional ways you can practice what you've learned. 1:39 In between some videos, we'll have quizzes and code challenges where you can review 1:42 what you've learned and practice it so the knowledge really sticks. 1:46 Okay, are you ready? 1:51 In the next video, werel going to get started on our app. 1:52
You need to sign up for Treehouse in order to download course files.Sign up