Use of strings 2

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

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

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

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

Long term plan unit:

School:

Data:

Teacher’s name:

Class:

The number of attendees:

absentees:

Lesson theme

Use of strings

Learning objectives that are achieved in this lesson (Subject Programme ref)

Use of procedures and functions for processing strings

Lesson objectives

Use of procedures and functions for processing the strings

Evaluation criteria

Knowledge

·     Know what is the substring

 

Understanding

·     Describes how to search a word in sentence

·     Describes how to work with Substring method of string

 

Application

·     Write code for processing the strings using functions

·     Write code for processing the strings using procedures

 

 

Language objectives

 

Student is able to describe how to look for the given word in a piece of text as well as manipulating Substring of an initial string.

For instance, one part of string, substring, could be replaced by Replace method of string.

Also, student can justify the purpose of function or procedure used for processing string.

Vocabulary and terminology specific to the subject:

string, string operators, comparing stings, substring, append, index , length of the substring

Useful expressions for dialogs and letters:

Well, to find a desired substring in the whole … .

For example, to get first n characters substring from a string… .

As a matter of fact, the stings are used in the wide variety of cases to  … .

 

Cultivating values

 

 

collaboration, mutual respect, academic honesty, perseverance, responsibility, lifelong learning

Cross curricular links

English, Math

Prior knowledge

 

Programming basics

During the classes

Planned stages of the lesson

Planned activities in the classroom

Resources

Beginning

4 min

 

 

1.      Greetings

2.      Starter

(C) An English proverb is presented to attract students’ attention. Then questions for revision of previous content.

    3. Announcement of topic and LO

   Students asked to think about Evaluation Criteria(EC) for LO to work it out (official EC is supplied)

3.      Vocabulary

4.      Useful expressions for dialogs

 

 

 

Slides 1-6

Middle

 

 

     13 min

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8 min

 

 

 

10 min

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 min

Task 1

Action: practice

Purpose: to develop main program for using the predefined function

Description:

Teacher’s activities:

Student’s activities:

Explains the   task and spreads the handout with code.

 

 

 

 

After task completed asks to explain how to search a word in sentence

Types in a function code given in handout and develops main program. Main program calls that function passing it the whole string and a word to search as a parameters

 

Respond the question

 

Evaluation:

Evaluation Criteria

Descriptors

Write code for processing the strings using functions

·         Types without errors the given functions code

·         Develops the code for main program that sends string and word to function

·         Outputs the frequency of word met in string

Describes how to search a word in sentence

·     students explain  how to search a word in sentence

 

Differentiation:  The students who finish earlier could try to change code according to their vision. For example, count the amount of some symbol in a string.

 

 

Theory

Teacher presents Substring method of String class. Provides a code example.

Students write down the core information.

 

 

Task 2 (handout 2)

Action: research

Purpose: learn how to deal with Substring method

Description:

Teacher’s activities:

Student’s activities:

Explains the task. Spreads handout  with one case of Substring method use

 

Before starting the task, presents on slide and discusses with students the evaluation criteria

 

Teacher shows the content for presenting pair of students on active board

(P)  Read and analyze the piece of information about Substring use. Afterwards, presents to other students using the active board presentation

 

 

 

 

 

 

Evaluation:

Evaluation Criteria

Descriptors

Describes how to work with Substring method of string

 

·         explain the situation where substring is used

·         able to describe every line of code

 

Feedback: Teacher makes comments or correction when necessary

 

Summary

Questions:

What is the substring?

When to use Substring method?

 

 

 

Handout 1

Slides 7

Appendix 1

 

 

 

 

 

 

 

 

 

 

 

Slide 7

Appendix 2

 

 

 

 

 

 

 

Slides 8 -12

 

 

 

 

 

 

 

Slide 13

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slide 14

 

 

 

End

2 min

Learners reflect at the end of the lesson:

Where is I am? (Blob tree)

Slide 15

Differentiation - how do you plan to provide more support? What tasks do you plan to put before more able learners?

Evaluation - how do you plan to check the level of mastering the material by learners?

Health and safety practices


Дифференциация может быть выражена в подборе заданий, в ожидаемом результате от конкретного ученика, в оказании индивидуальной поддержки учащемуся, в подборе учебного материала и ресурсов с учетом индивидуальных способностей учащихся (Теория множественного интеллекта по Гарднеру).

Дифференциация может быть использована на любом этапе урока с учетом рационального использования времени.

Use this section to record the methods that you will use to assess what students have learned during the lesson.

Health-saving technologies.

Used body and physical exercises.

Points applied from the Safety Rules in this lesson.

Reflection on the lesson

 

Were the goals of lesson/ learning objectives realistic?

Have all the students reached the LO?

If not, why?

Is the differentiation done correctly in the lesson?

Were the time stages of the lesson sustained?

What were the deviations from the lesson plan and why?

Use this section to reflect on the lesson. Answer the most important questions about your lesson from the left column.

 

Overall assessment

 

 

What two aspects of the lesson went well (think about both teaching and learning)?

1:

 

2:

 

What could help improve the lesson (think about both teaching and learning)?

1:

 

2:

 

What I found during the lesson related to the class or the achievements / difficulties of individual students, what should I look for in subsequent lessons?

 

 

 

 

Appendix 1

 (handout 1)

Task 1. Using this function write the code for main program that passes to function the string (sentence) and a word in that string. Function counts the occurrence amount of the word in string and returns that number to main program. Then Main program outputs that number.

static  int  CountStringOccurrences(string text, string pattern)

            {

 

            int count = 0;

            int i = 0;

            while ((i = text.IndexOf(pattern, i)) != -1)

            {

                i += pattern.Length;

                count++;

            }

            return count;

        }

 

 

 

 

Links:

 

 

 

1.      https://www.myenglishteacher.eu/blog/proverbs-about-knowledge/

 

2.    https://www.c-sharpcorner.com/UploadFile/mahesh/substring-in-C-Sharp/

3.       

 


 

Скачано с www.znanio.ru