Learn the fundamentals of computer programming with the new C# programming language.
This course starts with programming fundamentals: input/output operations, decision making, and looping. Then, you will explore the many benefits of object-oriented programming, with plenty of vivid, real-life examples.
Then, you will gain hands-on experience with sequential data files, and you will be able to build a professional-looking and intuitive Graphical User Interface (GUI) application on your very own computer.
Because there is no better way to learn programming than hands-on practice, almost every lesson includes practical examples and assignments you can use to develop your knowledge of programming.
Learn to program the right way: by using a state-of-the-art language to build impressive applications on your schedule and on your very own computer.
- This course must be taken on a PC.
- PC: Windows 8 or newer.
- Browser: The latest version of Google Chrome or Mozilla Firefox are preferred. Microsoft Edge is also compatible.
- Adobe Acrobat Reader. Click here to download the Acrobat Reader.
- Software must be installed and fully operational before the course begins.
- Email capabilities and access to a personal email account.
1 Computer Basics and the History of Programming
C# is a fantastic programming language that combines the best parts of C++, Java, and Visual Basic all into one language. This first lesson briefly explores the history of programming languages and then explore the .NET framework.
2 The C# Compiler and Your First C# Program
Armed with some background, you will now proceed to installing the C# compiler, and then you will write, compile, and run your first C# program. Although you will start with a small program, it will be clear even small C# programs can be a bit tricky. This lesson gives you a great opportunity to practice working with the compiler, something that you will be using for the remainder of the course.
3 Data Types and Mathematical Operators
Now that you're comfortable with compiling and running simple programs, you will shift to math. But you will be learning about the basic math operators that C# provides. And because you will need a place to save the results of your calculations, you will also learn about variables and their data types.
4 Value Returning Methods
This lesson is your first step into modular programming with methods. Methods are a helpful tool because they allow us to break up big programs into smaller, more manageable parts. First you will start learning a few built-in methods that are available. Then you will learn how to write your own methods and call them in your program. Hopefully you will agree that this way of programming makes it easier to tackle large problems.
5 Void Methods and Overloading
This lesson continues building on the concept of methods. You will learn about methods that don't return any value, which help make your program modular. This lesson also covers method overloading, which can help improve the readability of your programs by reusing method names within the same code file.
6 The if Selection Structure
By this point in the course, you will be comfortable doing the basics of C#: working with variables, math, and methods. In this lesson, you will learn about the if statement and how you can use it to let the computer choose which set of statements to execute based on some condition.
7 More About the Selection Structure
This lesson continues your investigation of the decision structure in today's lesson by taking a look at more complex if statements. You will also learn how to use the switch statement to make decisions in your programs as well. This ability to have multiple programming structures is sort of like having another tool in your tool belt. Sometimes a job is far easier to do if you just use the right tool. You may not always need to use every tool, but it's good to know what tools are there and how to use them. You will find the same is true in programming.
8 The Repetition Structure
Keeping with the theme of programming structures, you will now look at the repetition structure. Just as there were different ways to implement the decision structure, there are a couple of ways to work with loops. This lesson focuses on the while loop, the for loop, and the do loop. Each structure works the same in that they allow you to repeat statements, but each one is a little different. Here you will learn their differences and add to the tools in your tool belt.
One of the most useful applications of loops is arrays, so it makes sense for you to build on your knowledge of loops and explore array variables in this lesson. You will learn how to create and access array variables.
Object-oriented programming is a big topic, and C# is an object-oriented language. You will write a class that will store the data necessary to keep track of the time. Since you're writing this class, you will have the ability to take this code and add it to any program that needs to store information about the time, such as appointment books and scheduling programs.
11 Exceptions and Files
Obviously, computer programs are big time savers and really help us to automate things. But in order for a program to be really useful, it needs to be able to save data for use later. In this lesson, you will learn how to read from and write to external data files, so you can store your user data forever.
12 Graphical User Interfaces
In your final lesson, you will learn programs with a Graphical User Interface (GUI). While C# has an Integrated Development Environment (IDE) that gives you the ability to easily create GUI applications, the code that's generated is buried deep in the file structure. You will also learn how to build your own GUI without an IDE. By doing this, you will be far better prepared for working with IDEs in the future because you will know exactly what's going on behind the scenes.