Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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:
Treehouse Community: Ruby topic
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:
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up