0% found this document useful (0 votes)
86 views5 pages

Training Assignments: C# Basics

The document provides guidance for a C# basics training assignment. It outlines objectives for an assignment to create a project that gets a user's name as input and displays a greeting. It describes requirements like displaying a message in the console window and reading input from the user. It also includes notes on techniques like reading input from the console, differences between Read, ReadKey and ReadLine, and concatenating strings.

Uploaded by

huy nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views5 pages

Training Assignments: C# Basics

The document provides guidance for a C# basics training assignment. It outlines objectives for an assignment to create a project that gets a user's name as input and displays a greeting. It describes requirements like displaying a message in the console window and reading input from the user. It also includes notes on techniques like reading input from the console, differences between Read, ReadKey and ReadLine, and concatenating strings.

Uploaded by

huy nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

You might also like