C# BASICS
Trai ni ng Assi gnment s
Document Code 25e-BM/HR/HDCV/FSOFT
Version 1.1
Effective Date 20/11/2012
Hanoi, 06/2019
Lab Guides C# Basics Issue/Revision: x/y
RECORD OF CHANGES
No Effective Date Change Description Reason Reviewer Approver
1. 01/Oct/2018 Create new Draft
2. 01/Jun/2019 Update template Fsoft DieuNT1
template
25e-BM/HR/HDCV/FSOFT v1.1 Internal use 2/5
Lab Guides C# Basics Issue/Revision: x/y
Contents
Day 1: Assignment 1: Getting Start.................................................................................................................. 4
Objectives:.................................................................................................................................................... 4
Screen Requirements:.................................................................................................................................. 4
Functional Requirements:............................................................................................................................. 4
Write your notes:........................................................................................................................................... 4
25e-BM/HR/HDCV/FSOFT v1.1 Internal use 3/5
Lab Guides C# Basics Issue/Revision: x/y
CODE: Net.S.A001
TYPE: SHORT
LOC: 100
DURATION: 30 MINUTES
Day 1: Assignment 1: Getting Start
Objectives:
» Know how to create a new project named GettingStart in Visual Studio.
» Allow user enter his/her name.
» Say hello.
Screen Requirements:
Functional Requirements:
» Display a message in console window.
» Read inputted data from console window.
Write your notes:
How do you read Use Console.ReadLine() to read inputted data from console and use
inputted data from console Console.WriteLine() to display data
window?
What is difference Console.Read():Reads the next character from the standard input
when you use Console.Read stream. it only accept single character from user input and return its
vs Console.ReadKey vs ASCII Code.
Console.ReadLine? Console.ReadKey():It obtains the next character or function key
pressed by the user. In simple words, it read that which key is pressed
by user and return its name. it does not require to press enter key before
entering.
Console.ReadLine():Reads the next line of characters from the
standard input stream. simply you can say, it read all
the characters from user input. (and finish when press enter)
How do you To concatenate two strings, use the String.Concat method
concatenate two or more
strings in C#?
25e-BM/HR/HDCV/FSOFT v1.1 Internal use 4/5
Lab Guides C# Basics Issue/Revision: x/y
25e-BM/HR/HDCV/FSOFT v1.1 Internal use 5/5