A Gentle Introduction to Robotics

Chapter One: Coding in C#

Preface
Introduction
First Concepts: Program Elements and Organization
Program 1: Hello, World!
Variables
Program 2: Print Some Primes
Datatypes I: Integral Types
Program 3: Integer Computations
Conditionals
Program 4: Fibonacci Numbers
Iteration
Program 5: Russian Peasant Multiplication
Expressions, Operators, and Operands
Program 6: Square Roots
Datatypes II: Floating Point Numbers
Program 7: Transcendental Functions
Datatypes III: Non-Numeric Datatypes
Program 8: Objects and Vectors and Chars, Oh My!
Classes I: Concepts
Program 9: Frogs and Ponds
Classes II: Details
Program 10: Complex Numbers
Classes III: Generics and Interfaces. And Structs. And I Suppose Records
Program 11: Fibonacci Numbers Revisited
Classes IV: The Rules
Logging
Program 12: Space Wars
Exceptions, Delegates, and Events
Program 13: A Sudoku Solver
Names, Types, and Other Metadata
Program 14: Classy Colors
Recursion
Program 15: Egyptian Fractions
Bits
Program 16: Bit Fields
Extension Methods
Program 17: Scanning and Spanning Strings
Object End Of Life
Program 18: Litterbug
I/O
Program 19: Replace HTML Entities
Best Practices
Coding in C# Afterword