Learning Objectives
Environment
Getting Started with Visual Studio 2017 https://mva.microsoft.com/en-US/training-courses/getting-started-with-visual-studio-2017-17798?l=9oIw0FD6D_3611787171 (Multiple Videos)
Visual Studio IDE Overview https://docs.microsoft.com/en-us/visualstudio/ide/visual-studio-ide (Document)
Using the
dotnet
command in the command prompt demo. Create a free account on codeschool.com to view this content http://campus.codeschool.com/courses/try-c-sharp/level/1/section/1/what-is-c-sharp (One Video)Working with Code Files, Projects, and Solutions https://mva.microsoft.com/en-us/training-courses/c-fundamentals-for-absolute-beginners-16169?l=vE6GqMQIC_506218949 (One Video)
Variables
Storing and Retrieving Data. Create a free account on codeschool.com to view this content http://campus.codeschool.com/courses/try-c-sharp/level/2/section/1/storing-and-retrieving-data(One Video)
Understanding Data Types and Variables https://mva.microsoft.com/en-us/training-courses/c-fundamentals-for-absolute-beginners-16169?l=Y6D7PQQIC_5406218949 (One Video)
Using Variables, including constant variables and structs data type. This is NOT a free resource, you must have a paid lynda.com account to view this content https://www.lynda.com/C-tutorials/Using-variables/164452/176196-4.html (One Video)
Data types
FYI. There are 15 built-in data types in C#
Demo Data Types Variables Operators https://youtu.be/8UGBfzWLGfQ (One Video)
String types
- Working with Strings https://mva.microsoft.com/en-us/training-courses/c-fundamentals-for-absolute-beginners-16169?l=xV66IaQIC_3806218949 (One Video)
Common Operators
- Operators, Expressions, and Statements https://mva.microsoft.com/en-us/training-courses/c-fundamentals-for-absolute-beginners-16169?l=xV66IaQIC_3806218949 (One Video)
Datatype conversion
- FYI. The
int.Parse(VALUE_TO_CONVERT_INTO_STRING)
method allows us to convert astring
into anint
- Boxing vs. unboxing. This is NOT a free resource, you must have a paid lynda.com account to view this content https://www.lynda.com/C-tutorials/Boxing-vs-unboxing/604242/634148-4.html (One Video)
- FYI. The
Nullable types (Optional)
- Nullable Types in C# https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types (Document)
Instructor Presentation (20 minutes)
Visual Studio Overview
Visual Studio 3rd party plug-ins demo
Hello World project demo
Class projects
Simple Calculator. Write a C# program that takes two numbers as input, adds them together, and displays the result of that operation
Converter. Write a C# program that converts yards to inches
Playing with Variables. Write a C# program and add the following:
Create and define the variable
people
astrue
Create and define the variable
f
asfalse
Create and define the variable
num
to be adecimal
Display the product of
num
multiplied by itselfCreate the following variables with your personal information
firstName
lastName
age
job
favoriteBand
FavoriteSportsTeam
Print out the variables to the console prompt window
Convert the variable
num
to anint
data type
In-class activities
Hello World 2.0
C# Namespaces
Problem Solving in Programming
Quiz
What are the different data types you will use in C#?
What's the difference between variables and constants?
What is scope and how does it affect your code?
What is the difference between a decimal and a float?
What does it mean that C# is considered a strongly type language?
How do professional developers use common data types in their projects?