Begin to Code with C#, 1st edition
Published by Microsoft Press (September 9, 2016) © 2017
- Rob Miles
eTextbook
- Available for purchase from all major ebook resellers, including InformIT.com.
- To request a review copy, click on the "Request a Review Copy" button.
- A print text (hardcover or paperback)Â
- Free shipping
- Also available for purchase as an ebook from all major ebook resellers, including InformIT.com
Microsoft has completely reinvented the beginning programmer's tutorial, reflecting deep research into how today's beginners learn, and why other books fall short. Begin to Code with C# is packed with innovations, starting with its "Snaps" library of pre-built operations. It's full of "Make Something Happen" projects that let learners practice and build skills as they create their own programs. Begin to Code with C# balances playful exposition and illustration of programming fundamentals with the readers own creative input. This full-color book will inspire students to start solving problems and creating programs with code, even if they have absolutely no programming experience.
- AÂ beginner's guide to give you creative, hands-on input
- Packed with "Make Something Happen" exercises to show off growing skills and help students build original code of their own
- Reflects deep analysis of what hasn't worked in other beginner's guides, and innovative thinking about how to teach programming more effectively
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 Â
Â
Need help? Get in touch