Book description
Become a C# programmer—and have fun doing it!
Start writing software that solves real problems, even if you have absolutely no programming experience! This friendly, easy, full-color book puts you in total control of your own learning, empowering you to build unique and useful programs. 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, from its “Snaps” prebuilt operations to its “Make Something Happen” projects. Whether you’re a total beginner or you’ve tried before, this guide will put the power, excitement, and fun of programming where it belongs: in your hands!
Easy, friendly, and you’re in control! Learn how to…
• Get the free tools you need to create modern programs
• Work with 150 sample programs that illustrate important concepts
• Use the sample programs as starting points for your own programs
• Explore exactly what happens when a program runs
• Approach program development with a professional perspective
• Use powerful productivity shortcuts built into Microsoft Visual Studio
• Master classes, interfaces, methods, and other essential concepts
• Organize programs so they’re easy to construct and improve
• Capture and respond to user input
• Store and manipulate many types of real-world data
• Create interactive games that are fun to play
• Build modern interfaces your users will love
• Test and debug your code—and avoid problems in the first place
Table of contents
- Cover
- Title Page
- Copyright Page
- Dedication Page
- Contents at a glance
- Contents
- Introduction
-
Part 1: Programming fundamentals
- 1. Starting out
- 2. What is programming?
- 3. Writing programs
- 4. Working with data in a program
- 5. Making decisions in a program
-
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
-
Part 2: Advanced programming
- 8. Using methods to simplify programs
-
9. Creating structured data types
- Storing music notes by using a structure
- Objects and responsibilities: Making a SongNote play itself
- Protecting values held in a structure
-
Making a drawing program with Snaps
- Drawing dots on the screen
- Using the DrawDot Snap to draw a dot on the screen
- The SnapsCoordinate structure
- Using the GetDraggedCoordinate Snap to detect a drawing position
- Using the SetDrawingColor Snap to set the drawing color
- Using the ClearGraphics Snap to clear the screen
- The SnapsColor structure
- Creating enumerated types
- Making decisions with the switch construction
- Extra Snaps
- What you have learned
-
10. Classes and references
-
Making a time tracker
- Creating a structure to hold contact information
- Using the this reference when working with objects
- Managing lots of contacts
- Making test data
- Designing the Time Tracker user interface
- Structuring the Time Tracker program
- Creating a new contact
- Finding customer details
- Adding minutes to a contact
- Display a summary
- Structures and classes
- From arrays to lists
- Storing data using JSON
- Fetching data using XML
- What you have learned
-
Making a time tracker
-
11. Making solutions with objects
- Creating objects with integrity
- Using properties to manage access to data
- Managing the object construction process
-
Saving drawings in files
- SaveGraphicsImageToFileAsPNG
- SaveGraphicsImageToLocalStoreAsPNG
- LoadGraphicsPNGImageFromLocalStore
- The DateTime structure
- Getting the current date and time
- Fading date and time displays
- Using the date and time to make a file name
- Creating a Drawing class
- Creating a list of drawings
- Making the drawing diary methods
- What you have learned
- Part 3: Making games
- Index
- About the author
- Survey
- Code Snippets
Product information
- Title: Begin to Code with C#
- Author(s):
- Release date: September 2016
- Publisher(s): Microsoft Press
- ISBN: 9781509301188
You might also like
book
Code like a Pro in C#
Build on your existing programming skills and upskill to professional-level C# programming. In Code Like A …
book
Hands-On Object-Oriented Programming with C#
Enhance your programming skills by learning the intricacies of object oriented programming in C# 8 Key …
video
Learn How to Code Using C#: The Basics of Programming
Learn how to code with C# in this intro to programming course. This video course is …
book
Functional Programming in C#
Functional Programming in C# teaches you to apply functional thinking to real-world problems using the C# …