Use of strings 1

  • pptx
  • 02.05.2020
Публикация на сайте для учителей

Публикация педагогических разработок

Бесплатное участие. Свидетельство автора сразу.
Мгновенные 10 документов в портфолио.

Иконка файла материала Use of strings 1.pptx

What happens in the result of execution of this code snippet ?

Use of strings

LO: Use of procedures and functions for processing the strings

Evaluation Criteria:

Knowledge
•Know what is string
Understanding
•Describes the strings
Application
•Write code for processing the strings using functions
Write code for processing the strings using procedures

Vocabulary

string

immutable

unmodified

Verbatim

Useful expressions for dialogs :

Well, the variable of string type is created by … .
For example, assignment of some value to string variable by procedure … .
Obviously, the stings used for the wide variety of cases like … .

The String Class

String is defined in the System namespace.

That means to work with strings we have to include it into program:

using System;

Declaring and Initializing Strings

Task 1

(Handout 1)

Task 2. Concatenate two strings: Procedure has the beginning of phrase ‘Morning is ’ , main program sends it the word ‘rainy’

Evaluation Criteria

Descriptors

Write code for processing the strings using procedures

creates procedure that has a part of string
calls procedure from main program
passes sting to procedure from main program
procedure outputs the concatenated string

Summary

Questions:

What is the string in C#?
How to declare string variable?
How to initialize string variable?