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 C# to create a shopping program for the Kitty Cuisine Cat Food Store.
In this course, we're going to use C# to create a shopping program for the Kitty Cuisine Cat Food Store.
Here's our checklist of features our program is going to need.
- Display welcome message
- Ask for quantity
- Calculate total
- Discount for large orders
There are several areas of the C# language that we'll need to cover in order to implement these features.
- Variables will let us store data, and types will help prevent us from using that data incorrectly.
- Methods will let us break our code into smaller, more maintainable chunks.
- We'll use strings to hold text to show the user.
- Numeric types will let us store numbers.
- We'll also need to multiply those numbers, for which we'll need to understand math operations.
- And lastly we'll need to apply discounts if a certain quantity is ordered, for which we'll need
if
statements.
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