Contents
Introduction
Part 1:Â Â Programming fundamentals
1 Starting out   Â
Building a place to work                Â
Getting the tools and demos       Â
Using the tools Â
What you have learned Â
Â
2 What is programming?               Â
What makes a programmer?       Â
Programming and party planning              Â
Computers as data processors    Â
Data and information    Â
What you have learned Â
Â
3 Writing programs        Â
C# program structure    Â
Identify resources            Â
Start a class definition   Â
Declare the StartProgram method            Â
Set the title and display a message             Â
Extra Snaps         Â
Creating new program files          Â
Extra Snaps                          Â
Creating your own colors
What you have learned Â
Â
4 Working with data in a program             Â
Starting with variables
Using a variable in a program      Â
Working with numbersÂ
Working with different types of data       Â
Whole numbers and real numbers in programs  Â
Extra Snaps         Â
What you have learned Â
Â
5 Making decisions in a program                Â
Understanding the Boolean type                Â
Using if constructions and operators       Â
Creating blocks of statements    Â
Creating complex conditions using logical operators       Â
Adding comments to make a program clearer      Â
Funfair rides and programs          Â
Working with program assets     Â
What you have learned Â
Â
6 Repeating actions with loops Â
Using a loop to make a pizza picker           Â
Performing input validation with a while loop   Â
Using Visual Studio to follow the execution of your programs
Counting in a loop to make a times-table tutor   Â
Using a for loop construction     Â
Breaking out of loops     Â
Going back to the top of a loop by using continue              Â
Extra Snaps         Â
What you have learned Â
7 Using arrays   Â
Have an ice cream            Â
Making an array
Multiple dimensions in arrays    Â
Using arrays as lookup tables      Â
What you have learned Â
Â
Part 2: Advanced programming
8 Using methods to simplify programs   Â
What makes a method?Â
Making a tiny contacts app          Â
Adding IntelliSense comments to your methodsÂ
What you have learned
Â
9 Creating structured data types                Â
Storing music notes by using a structure
Objects and responsibilities: Making a SongNote play itself
Making a drawing program with Snaps   Â
Creating enumerated types          Â
Making decisions with the switch construction Â
Extra Snaps         Â
What you have learned Â
Â
10 Classes and references              Â
Making a time tracker    Â
Structures and classes   Â
From arrays to lists
Storing data using JSON
Fetching data using XMLÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
What you have learned Â
Â
11 Making solutions with objects              Â
Creating objects with integrity  Â
Managing the object construction process            Â
Saving drawings in files Â
What you have learned Â
Part 3:Â Â Making games
12 What makes a game?
Creating a video game   Â
What you have learned Â
Â
13 Creating gameplay    Â
Creating a player-controlled paddle         Â
Adding sound to gamesÂ
Displaying text in a game               Â
What you have learned Â
Â
14 Games and object hierarchies               Â
Games and objects: Space Rockets in Space           Â
Designing a class hierarchy           Â
What you have learned Â
15 Games and software components       Â
Games and objects          Â
What you have learned Â
Â