C# - Hello, World

Concepts

For this project, we expect you to look at these concepts:

Install Visual Studio Code and .NET Core SDK AR/VR Curriculum Track Introduction

Resources

Read or watch:

Install Visual Studio Code and .NET Core SDK A Tour of C# Get started with C# and Visual Studio Code Getting Started with .NET Core using the CLI C# Tutorial for Beginners (1:20 - 5:18) Strings (C# Programming Guide) C# Language Reference C# Coding Conventions Console.WriteLine Method

Learning Objectives

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

General

What is the meaning behind the name C#? Who is the lead architect of the development team of C#? What is .NET? What is the difference between C# and .NET? How to use VSCode and the integrated terminal to initialize, build, and run C# projects How to print text and variables using Console.Write

Requirements

Shell Scripts Allowed editors: vi, vim, emacs All your scripts will be tested on Ubuntu 14.04 LTS All your files should end with a new line The first line of all your files should be exactly #!/usr/bin/env bash All your files must be executable

C# Tasks

Allowed editors: Visual Studio Code All files will be compiled on Ubuntu 14.04 LTS using dotnet A README.md file, at the root of the folder of the project, is mandatory All default C# files named Program.cs should be renamed to the name given in each task You do not need to know about namespaces and classes yet. Namespaces should be omitted in this project. The default names generated in Program.cs for class are okay Each C# task requires its own folder and .csproj file. Push all task folders to your GitHub and ensure the task names on the folders are correct You do not need to push your obj/ or bin/ folders

C# - if/else, loops, functions

Resources

Read or watch:

if-else (C# Reference) Control Statements - Loops (You do not need to know foreach yet) Methods (C# Reference) (Read up to “Async Methods”) Standard Numeric Format Strings Iteration Statements C# Language Reference C# Coding Conventions

Learning Objectives

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

General

How to use if, else if, else statements How to use while and for loops How to use break and continue statements How to use numeric format strings How to declare methods within a class How to call public methods from another class What is passing by reference and passing by value

Requirements

C# Tasks

Allowed editors: Visual Studio Code All files will be compiled on Ubuntu 14.04 LTS using dotnet A README.md file, at the root of the folder of the project, is mandatory All default C# files named Program.cs should be renamed to the name given in each task You do not need to know about namespaces and classes yet. Namespaces should be omitted in this project Each C# task requires its own folder and .csproj file. Push all task folders to your GitHub and ensure the task names on the folders are correct You do not need to push your obj/ or bin/ folders In the following examples, the main.cs files are shown as examples. You can use them to test your functions, but you don’t have to push them to your repo (if you do we won’t take them into account). We will use our own main.cs files at compilation. Our main.cs files might be different from the one shown in the examples