[ Pobierz całość w formacie PDF ]
.o Stimulate recall of prior learning.Ask for a recall of previously learned relevant skills and knowledge,especially anything considered prerequisite to this lesson.Where appropriate, indicate how this knowledge is important for what theyare about to do.Copyright American Computer Experience, 2001Page 7 of 54Intermediate C++ Programmingo Present the contentIn the Beginner C++ course, the following concepts were covered:" C++ Syntax (curly brackets, semi-colon, case sensitivity,comments)" Text I/O with cin and cout (basic variables, output text to thescreen, store user input)" C++ Data Types (integer, float, character, Boolean)" Functions (return value and void functions, functions that acceptparameters)" Operators (arithmetic, logical, relational)" Conditional Expressions (if and switch statement)" Iteration Statements (for, while and do while loops)" Arrays (one-dimensional)o Provide learning guidanceSuggest a meaningful organization for the content that has just beenpresented.Where appropriate, point out how this information can beapplied and where it fits into a larger skill set." Extension and Performance AssessmentExtension is the process by which students learn how newly acquired skills and knowledgeare applied and how they are transferredo Elicit performance by asking students to complete an activity based on the skillsand knowledge that have been presented.o During or immediately following the students performance of the new skills,reinforce what they have learned by providing informative constructive feedback.It is also important here to take note of whether the student has retainedinformation presented in prior lessons and record this information in a checklist orby another appropriate method.Copyright American Computer Experience, 2001Page 8 of 54Intermediate C++ ProgrammingLesson 2 Loops" Learning ObjectivesBy the end of this lesson the students should be able to:1.Recall iteration statements and their application2.Understand and use the advanced features of iteration statements.3.Master or almost master the use of loops in C++ programs." Suggested Time Frame: 1 class or 45 minutesThis value is meant as a guideline and can be adjusted according to the particular needsof your students." Keywords and VocabularyThe following is a list of new keywords, vocabulary and terms that your students willencounter during this lesson.It is recommended that you prepare definitions orexplanations in advance and reinforce them with the students when they come up.o Comma operatoro Step size" Lesson PresentationThe following is a suggested presentation layout for this lesson.This is provided in detailto assist you in your preparation for teaching your class.It is also recommended thatbefore class you ensure that you have read all relevant materials, your classroom isprepared, all student resources have been assembled and all software, hardware andother equipment is ready for use.o Gain students attentionUse an abrupt stimulus change to gain the attention of your students.This will vary based on their age and is especially important for theyounger campers.o Inform the students of the objectivesUse the objectives list at the beginning of this lesson to explain to thestudents what they will learn during your presentation.You may alsobriefly describe how the lesson will proceed.o Stimulate recall of prior learning.Ask for a recall of previously learned relevant skills and knowledge,especially anything considered prerequisite to this lesson.Where appropriate, indicate how this knowledge is important for what theyare about to do.Review briefly the three loops discussed in the Beginner C++ course.Talk about the comma operator when defining multiple variables of thesame type.Discuss the uses of the comma operator with loops.Copyright American Computer Experience, 2001Page 9 of 54Intermediate C++ Programmingo Present the contentThis lesson presents the advanced features of iteration statements.Thesefeatures are relatively simple, thus the lesson should be focused onensuring that the students have almost mastered the use of loops.Besides mentioning the importance of loops, specify that throughout therest of this course loops will be used frequently.2.0 Loops2.1 Review of the three main loop structures.2.1 Review of the three main loop structures.Recall the three looping structures learned in Unit 01.These are:- The for Loop- The while Loop- The do while LoopEntry-Condition Loopsint i=0; int i=0;Both the for loop and thefor(i=0; i [ Pobierz całość w formacie PDF ]