Learning Objectives

Instructor Presentation (20 minutes)

  • Visual Studio Overview

  • Visual Studio 3rd party plug-ins demo

  • Hello World project demo

Class projects

  1. Simple Calculator. Write a C# program that takes two numbers as input, adds them together, and displays the result of that operation

  2. Converter. Write a C# program that converts yards to inches

  3. Playing with Variables. Write a C# program and add the following:

    1. Create and define the variable people as true

    2. Create and define the variable f as false

    3. Create and define the variable num to be a decimal

    4. Display the product of num multiplied by itself

    5. Create the following variables with your personal information

      • firstName

      • lastName

      • age

      • job

      • favoriteBand

      • FavoriteSportsTeam

    6. Print out the variables to the console prompt window

    7. Convert the variable num to an int data type

In-class activities

Quiz

  1. What are the different data types you will use in C#?

  2. What's the difference between variables and constants?

  3. What is scope and how does it affect your code?

  4. What is the difference between a decimal and a float?

  5. What does it mean that C# is considered a strongly type language?

  6. How do professional developers use common data types in their projects?

results matching ""

    No results matching ""