Skip to content

screenshot of C# code

Learn what it means to convert data from one type to another in C# (type conversion). C#, like most programming languages, has several built-in data types such as integer, string, and boolean. These classifications determine the range of values a variable of that type can hold, how the data will be stored, and what can ...continue reading "C# Type Conversion (and Coffee!)"

screenshot of Visual Studio suggestion for an error

Practice debugging and troubleshooting. Solving code problems can be a challenge, especially when the errors aren't obvious. With a bit of debugging practice, though, you can learn to quickly identify and fix common errors. One of the ways you can practice your troubleshooting and critical thinking skills is to take an application that is broken, ...continue reading "Debugging Code: Poem Generator (C#)"

ConsoleColor as Parameter (Console Application)

Using an object as a method parameter! This short example shows how you can make a ConsoleColor object (myColor) and pass it as an argument to a method. The method uses the object to change text color. After a message is typed into the console window, it is printed in color. Then color is reset ...continue reading "ConsoleColor as Parameter (Console Application)"

Random words, an array, and conditional statements. Create a word guessing game that asks a player to guess a random word. As we build the C# console application, we'll discuss some fundamental programming concepts. We'll build upon the code we started in . (If you haven't read it yet, you might want to start there!) ...continue reading "Word Guessing Game: C# Console Application"

Numeric Guessing Game

Type conversion, random numbers, and conditional statements. We'll create a game where the player will try to guess a random number. Fundamental programming concepts will be covered as we build the C# console application. Numeric Guessing Game Framework The framework for our game will have two classes: Program and Game. A method (Play) in the ...continue reading "Numeric Guessing Game: C# Console Application"

madlib

Madlibs are fun to build! Building a madlib is a great way to learn fundamental programming concepts. The application will ask a player to enter in words, it will store those words, and then replace words in a quote, story, or other short piece of text that will be written to the console window. The ...continue reading "Simple C# Madlib (Part One)"