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 strings |
||||||||||||||||||||||||
Evaluation criteria |
Knowledge · Know how to display Date in a string
Understanding · Describes Dynamic Strings In C#
Application · Write code for processing the strings using functions · Write code for processing the strings using procedures
Analysis · Analyzes given program to complete it
|
||||||||||||||||||||||||
Language objectives
|
Student is able to describe that memory, which is allocated for the string, cannot change. So, strings are immutable. For instance, while concatenating strings the old string exists in memory until garbage collection occur, that’s resource consuming. Thus, student has to work out (conclude) the implementation of StringBuilder Class and its methods. 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, StringBuilder Class, date Useful expressions for dialogs and letters: Well, to work with dynamic strings … . For example, AppendFormat method specifies a format for the … . 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
|
strings |
||||||||||||||||||||||||
During the classes |
|||||||||||||||||||||||||
Planned stages of the lesson |
Planned activities in the classroom |
Resources |
|||||||||||||||||||||||
Beginning 4 min
|
1. Greetings 2. Starter (C) 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-4 |
|||||||||||||||||||||||
Middle
5 min
10 min
15 min
4 min |
Task 1 Action: practice Purpose: to analyze and complete the program Description:
Evaluation:
Feedback: Teacher makes comments or correction when necessary
Theory Rebus is presented for guessing the word StringBuilder Teacher presents StringBuilder class. Provides a code example. Students write down the core information.
Task 2 Action: practice Purpose: to practice the StringBuilder methods Description:
Evaluation:
Differentiation: The students who finish earlier researches the StringBuilder.Capacity Property to understand how the memory allocated for by StringBuilder. Feedback: Teacher makes comments or correction when necessary
Summary Questions: How do you understand the phrase: ‘strings are immutable’? What happens if the string has changed? Explain the principle of memory allocation by StringBuilder class (how the memory is allocated by StringBuilder in case when string has changed) |
Handout 1 Slides 5-6 Appendix 1
Slides 7-14
Slide 15 Handout 2
Slide 16
|
|||||||||||||||||||||||
End 2 min |
Learners reflect at the end of the lesson: Where is I am? (Blob tree) |
Slide 17 |
|||||||||||||||||||||||
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. Complete the code
static void TellDate(DateTime dt)
{
string strDate = dt.ToString("M");
Console.WriteLine("Date and Time : {0}", __________);
Console.WriteLine("Month and Date : {0}", __________);
}
static void Main(string[] args)
{
DateTime date = new DateTime(2019, 6, 23);
_________________________________________
Console.ReadLine();
}
Task 2
Handout 2
Examples of Each method
Let us create an object, as shown below.
1. StringBuilder sb= new StringBuilder(“ABCD”);
APPEND
APPEND FORMAT
INSERT
REMOVE
REPLACE
Links:
1. https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.capacity?view=netframework-4.7.2
2. https://www.c-sharpcorner.com/article/how-to-create-dynamic-strings-in-c-sharp/
Скачано с www.znanio.ru
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.