Skip to main content
Ctrl+K

Introduction to Computer Science in C# (09 May 2026)

  • Introduction to Computer Science in C#
  • Context
    • Motivation for This Book
    • Resources Online
    • Downloading and Reading Options
    • Computer Science, Broadly
    • Chapter Review Questions
  • C# Data and Operations
    • A Sample C# Program
    • Lab: Editing, Compiling, and Running with Xamarin Studio
    • Lab: Editing, Compiling, and Running with Visual Studio Code
    • Lab: Editing, Compiling, and Running with Vim
    • Arithmetic
    • Variables and Assignment
    • Reading C# Syntax Templates
    • Strings, Part I
    • Writing to the Console
    • C# Program Structure
    • Combining Input and Output
    • String Special Cases
    • Substitutions in Console.WriteLine
    • Value Types and Conversions
    • Learning to Solve Problems
    • Lab: Division Sentences
    • Chapter Review Questions
  • Defining Functions of your Own
    • A First Function Definition
    • Multiple Function Definitions
    • Function Parameters
    • Multiple Function Parameters
    • Returned Function Values
    • Two Roles: Writer and Consumer of Functions
    • Local Scope
    • Static Variables
    • Not using Return Values
    • Library Classes
    • Tracebacks
    • Static Function Summary
    • Chapter Review Questions
  • Basic String Operations
    • String Indexing
    • Some Instance Methods and the Length Property
    • A Creative Problem Solution
    • Lab: String Operations
    • Chapter Review Questions
  • Decisions
    • Conditions I
    • Simple if Statements
    • if-else Statements
    • More Conditional Expressions
    • Multiple Tests and if-else Statements
    • If-statement Pitfalls
    • Compound Boolean Expressions
    • Nested if Statements
    • Chapter Review Questions
  • While Loops
    • While-Statements
    • While-Statements with Sequences
    • Interactive while Loops
    • Short-Circuiting && and ||
    • While Examples
    • More String Methods
    • User Input: UI
    • Greatest Common Divisor
    • Do-While Loops
    • Number Guessing Game Lab
    • Chapter Review Questions
  • Foreach Loops
    • foreach Syntax
    • foreach Examples
    • Chapter Review Questions
  • For Loops
    • For-Statement Syntax
    • Examples With for Statements
    • Lab: Loops
    • Chapter Review Questions
  • Files, Paths, and Directories
    • Files As Streams
    • Writing Files
    • Reading Files
    • Path Strings
    • Directory Class
    • Command Line Execution
    • FIO Helper Class
    • Chapter Review Questions
  • Arrays
    • One Dimensional Arrays
    • Musical Scales and Arrays
    • Linear Searching
    • Sorting Algorithms
    • Binary Searching
    • Lab: Arrays
    • Lab: Performance
    • Multi-dimensional Arrays
    • Chapter Review Questions
  • Lists
    • List Syntax
    • .Net Library (API)
    • Chapter Review Questions
  • Dictionaries
    • Dictionary Syntax
    • Dictionary Efficiency
    • Dictionary Examples
    • Lab: File Data and Collections
    • Chapter Review Questions
  • Classes and Object-Oriented Programming
    • A First Example of Class Instances: Contact
    • Class Instance Examples
    • The Rational Class
    • Planning A Class Structure
    • Classes And Structs
    • Defining Operators (Optional)
    • Chapter Review Questions
  • Testing
  • Interfaces
    • Rationals Revisited
    • Csproject Revisited
    • Chapter Review Questions
  • Recursion
  • Data Structures
  • Appendix
    • Development Tools
    • Xamarin Studio
    • Command Line Introduction
    • Precedence of Operators
    • Homework: Grade Calculation
    • Homework: Grade Calculation from Individual Scores
    • Homework: Grade File
    • Homework: Book List
    • Group Project
    • Lab: Version Control
    • Mercurial and Teamwork
    • Acknowledgments
  • Repository
  • Open issue

Appendix

Appendix#

  • Development Tools
    • About Software Development Kits (SDKs)
    • Editing and Building Tools
    • About Integrated Development Environments (IDE)
    • Our Approach
    • Installing Mono and Xamarin Studios
    • OS X
    • Windows
    • Linux
  • Xamarin Studio
  • Command Line Introduction
    • Navigating Directories
    • Common Commands
    • Scripts
    • Copy and Paste
    • Command Line Shortcuts
  • Precedence of Operators
  • Homework: Grade Calculation
    • Program Summary
    • Details
    • Grading Rubric
    • Logs and Partners
  • Homework: Grade Calculation from Individual Scores
    • Functional Requirements
    • Style Requirements
    • Grading Rubric
    • Logs and Partners
  • Homework: Grade File
    • Brief Problem Statement
    • Using C#
    • Requirements
    • Hints
    • Grading Rubric (25 points)
  • Homework: Book List
    • Book class
    • BookList class
    • TestBookList class
    • Grading Rubric
    • Extra Credit
  • Group Project
    • Objectives
    • Overview
    • Your Team
    • Roles
    • The process
    • Splitting Up The Coding
    • Weekly reports
    • Intermediate deliverables
    • Final Deliverables
  • Lab: Version Control
    • Goals
    • Steps
  • Mercurial and Teamwork
    • Planning and Communication
    • Typical Scenario
    • Conflict Avoidance
    • E-mail Notifications
    • Communication is Key to Success
  • Acknowledgments

previous

Data Structures

next

Development Tools

By Andrew N. Harrington and George K. Thiruvathukal

© Copyright 2012-2021, Andrew N. Harrington and George Thiruvathukal.

Last updated on 09-May-2026 16:14:48.