1 00:00:00,380 --> 00:00:04,670 In this course, we're going to use Ruby to create a shopping program for widgets. 2 00:00:04,670 --> 00:00:05,730 What's a widget? 3 00:00:05,730 --> 00:00:06,720 I don't really know. 4 00:00:06,720 --> 00:00:08,440 But they sure are popular. 5 00:00:08,440 --> 00:00:11,000 People often buy them in groups of 50, 100, 6 00:00:11,000 --> 00:00:14,400 or more even though they cost $10 a piece. 7 00:00:14,400 --> 00:00:17,810 The widget store needs us to write a program that lets a user type in 8 00:00:17,810 --> 00:00:19,930 the number of widgets they want to buy, 9 00:00:19,930 --> 00:00:24,710 multiply that by ten to get the total price and report the total to the user. 10 00:00:24,710 --> 00:00:28,370 They're also thinking that they may need to offer discounts if a user is purchasing 11 00:00:28,370 --> 00:00:29,720 a large quantity. 12 00:00:29,720 --> 00:00:30,990 Sound complicated? 13 00:00:30,990 --> 00:00:35,530 Don't worry, everything we need to solve this problem is built in to Ruby. 14 00:00:35,530 --> 00:00:37,790 We'll learn how to output text to the terminal and 15 00:00:37,790 --> 00:00:39,920 store values the user types in. 16 00:00:39,920 --> 00:00:42,390 We'll learn how to do arithmetic in Ruby. 17 00:00:42,390 --> 00:00:46,250 And we'll learn to write Ruby methods that let us break the problem into small chunks 18 00:00:46,250 --> 00:00:48,270 that we can easily handle. 19 00:00:48,270 --> 00:00:51,130 Before we get started, we want to make sure you know about all 20 00:00:51,130 --> 00:00:55,100 the Treehouse features that will help you succeed with this course. 21 00:00:55,100 --> 00:00:59,060 We've tried to adjust the pace of this material to accommodate everyone. 22 00:00:59,060 --> 00:01:02,550 But depending on what you know, it's probably going to be too slow for 23 00:01:02,550 --> 00:01:05,450 you in some places and too fast in others. 24 00:01:05,450 --> 00:01:10,540 So take a moment to familiarize yourself with the video playback controls. 25 00:01:10,540 --> 00:01:13,850 You can adjust the playback speed to be faster or slower. 26 00:01:13,850 --> 00:01:16,600 You can rewind if you need to go over something again. 27 00:01:16,600 --> 00:01:19,790 And you can pause if there's text on screen that you need time to look 28 00:01:19,790 --> 00:01:20,640 at more closely. 29 00:01:22,040 --> 00:01:25,260 On the page for any video in this course, you can click the launch 30 00:01:25,260 --> 00:01:29,530 works space button to start an environment where you can code along with the video. 31 00:01:29,530 --> 00:01:31,140 And run your program when you're done. 32 00:01:32,160 --> 00:01:36,210 Every video page will also have teacher's notes with code samples, 33 00:01:36,210 --> 00:01:39,240 links to additional reading, troubleshooting tips, or 34 00:01:39,240 --> 00:01:41,219 additional ways you can practice what you've learned. 35 00:01:42,290 --> 00:01:46,730 In between some videos, we'll have quizzes and code challenges where you can review 36 00:01:46,730 --> 00:01:49,940 what you've learned and practice it so the knowledge really sticks. 37 00:01:51,030 --> 00:01:52,950 Okay, are you ready? 38 00:01:52,950 --> 00:01:55,330 In the next video, werel going to get started on our app.