1. Trang chủ
  2. » Giáo án - Bài giảng

FOR ALL YOU TEACH

3 42 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Nội dung

FOR ALL YOU TEACH tài liệu, giáo án, bài giảng , luận văn, luận án, đồ án, bài tập lớn về tất cả các lĩnh vực kinh tế, k...

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyChapter 5Functions for All Subtasks Slide 5- 3Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyOverview5.1 void Functions 5.2 Call-By-Reference Parameters5.3 Using Procedural Abstraction5.4 Testing and Debugging Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley5.1void Functions Slide 5- 5Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesleyvoid-FunctionsIn top-down design, a subtask might produceNo value (just input or output for example)One value More than one valueWe have seen how to implement functions thatreturn one valueA void-function implements a subtask that returns no value or more than one value Slide 5- 6Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyDisplay 5.1void-Function DefinitionTwo main differences between void-function definitions and the definitions of functions that return one valueKeyword void replaces the type of the value returnedvoid means that no value is returned by the functionThe return statement does not include and expressionExample:void show_results(double f_degrees, double c_degrees) { using namespace std; cout << f_degrees << “ degrees Fahrenheit is euivalent to “ << endl << c_degrees << “ degrees Celsius.” << endl; return;} Slide 5- 7Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyUsing a void-Functionvoid-function calls are executable statementsThey do not need to be part of another statementThey end with a semi-colonExample: show_results(32.5, 0.3); NOT: cout << show_results(32.5, 0.3); Slide 5- 8Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesleyvoid-Function CallsMechanism is nearly the same as the function calls we have seenArgument values are substituted for the formal parameters It is fairly common to have no parameters in void-functionsIn this case there will be no arguments in the function callStatements in function body are executedOptional return statement ends the functionReturn statement does not include a value to returnReturn statement is implicit if it is not included Slide 5- 9Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyDisplay 5.2 (1)Display 5.2 (2)Example: Converting TemperaturesThe functions just developed can be used in a program to convert Fahrenheit temperatures toCelcius using the formula C = (5/9) (F – 32)Do you see the integer division problem? Slide 5- 10Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-WesleyDisplay 5.3void-FunctionsWhy Use a Return?Is a return-statement ever needed in avoid-function since no value is returned?Yes!What if a branch of an if-else statement requires that the function ends to avoid producing more output, or creating a mathematical error?void-function in Display 5.3, avoids division by zerowith a return statement [...]... a call-by-reference or call-by-value formal parameter is needed?  Does the function need to change the value of the variable used as an argument?  Yes? Use a call-by-reference formal parameter  No? Use a call-by-value formal parameter Slide 5- 22 Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Section 5.2 Conclusion  Can you  Write a void-function definition for. .. 5- 19 Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Mixed Parameter Lists  Call-by-value and call-by-reference parameters can be mixed in the same function  Example: void good_stuff(int& par1, int par2, double& par3);  par1 and par3 are call-by-reference formal parameters  Changes in par1 and par3 change the argument variable  par2 is a call-by-value SERIES OF PRACTICE TESTS FOR GRADE - STUDENTS & TEACHERS PRACTICE TEST 03 I Choose the best option among A, B, C, or D provided to finish each of the following sentences I don't mind you _ home late as long as you don't make so much noise A go B to go C going D went The girl _ photo was in the paper today lives in our street A who B whom C which D whose The _ of this city has increased rapidly in the recent years A number B population C crowd D total The _ is the place where a particular species of animal is normally found A habit B surrounding C region D area My younger brother would like to become a computer _ A program B programmer C to program D programmed The lazy student felt _ about his coming examination because he had hardly leant anything at all A easy B easier C uneasy D not easy Foreigners who learn English normally have difficulty with its _ A pronounce B pronunciation C pronounced D pronouncing The company is not taking on any new _ this year A to employ B employer C employee D employ The old couple have saved a lot of money for their _ A retire B retiring C to retire D retirement 10 I admire the _ use of color in her paintings A effection B effective C to effect D effecting 11 English is a _ easy language for Swedes to learn A compare B to compare C comparatively D comparison 12 We walked to the _ bus stop in ten minutes A near B nearer C next D nearest 13 She can't apply _ the job because she doesn't have enough qualifications A in B for C to D at 14 More than half of the world's _ are printed in English A period B periodic C periodicals D periodically 15 Did anyone ask you to make a _ at the reception? A speaking B speech C to speak D speak 16 Mark Twain was born in Missouri _ 1835 A on B for C in D at 17 He won't pass the exam _ he works hard A if B unless C or D whether 18 They are the children _ won the match yesterday A whose B who C whom D which 19 We would go camping _ the weather were fine A although B if C but D however 20 He has _ in giving up smoking A to succeed B successful C unsuccessful D succeeded 21 On a spaceship gravity is zero and everything seems to _ A fly B flying C float D floating 22 It's the English language _ is used as an official language in 44 countries A which B that C who D whom 23 A person who teaches at university is a _ A teacher B lecturer C professor D student 24 What's the place _ you stand and wait for a train? A when B where C which D that 25 Vietnam is a _ country A develop B developed C developing D to develop 26 Phone the _ if the lights don't work A electric B electrician C electrify D electricity By Do Binh – Lien son High School, Lap thach, Vinh Phuc www.violet.vn/quocbinh72 Trang SERIES OF PRACTICE TESTS FOR GRADE - STUDENTS & TEACHERS 27 I borrowed the money _ the bank A to B of C for D from 28 We _ Betty since she moved to our neighborhood A have known B had known C are knowing D knew 29 Do we _ attend the dance? A ought B have got to C must to D have to 30 My sister is _ than me A much older B much elder C most older D more older 31 You should hear Lucy play _ guitar A the B one C some D a 32 Betty _ a lot of presents on her birthday A was given B gave C was giving D was been given 33 I'm really looking _ Christmas this year A after B out for C into D forward to 34 _ can come to the club You don't need to be a member A Someone B Every C Each one D Anyone 35 The dog must _ to the vet A taken B be taken C be take D take 36 My nephews speak French really _ A good B better C well D best 37 There is _ food left but not enough for everyone A little B a little C few D a few 38 _ luggage is this? - It's Karen's A What B Which C How much D Whose 39. _ have you been playing the flute? - Since 1992 A When B Since C How long D How long ago 40 The meeting will start when everyone _ A will arrive B arrives C is arriving D will be arriving II- Read the following passage and choose A, B, C, or D to fill in the gaps: Steven Spielberg was born in Ohio He is one of the most (41) _ filmmakers in recent times, and in his (42) _ he has earned millions (43) _ dollars He has been making movies (44) _ 1961 His first film was a war movie, Escape to Nowhere, (45) _ was made when he was only 13 He studied English literature at California State University and then worked in the television division (46) _ Universal Studios in Hollywood for seven years In 1975, he made the movie Jaws, which (47) _ very successful, and (48) _ him rich and famous Since then, he has made more than 30 movies, including the box- office hits Close Encounters of the Third Kind, Indiana Jones, ET, and Jurassic Parkura He has also directed (49) _ serious movies, like Schindler's List and Saving Private Ryan, and he has produced a lot of hit movies In 1994, he formed a new Hollywood studio, Dreamworks Recently, Dreamworks has been (50) _ Microsoft to produce interactive computer games and videos 41 ...Some people believe that a college or university education should be available to all students. Others believe that higher education should be available only to good students. Discuss these views. Which view do you agree with? Explain why. People learn through their entire lives. They constantly improve their knowledge and develop. I think that a college or university education should be available to all students because every person has the right to choose the way to self-perfection. Bellow I will give some of my reasons to support my position. First of all, every person should have the chance to get a higher degree, gain new knowledge and experience. However, some people believe that higher education should be available only to good students. I think it is silly. It is like to make unavailable travelling for one who does not have IQ high enough. Second of all, some young people do not do well at school but they have great personality and ability to learn. They are self-confident, persistent and patient. With these qualities they can get higher grades then their classmates who are talented but lazy. Imagine for example situation when a teenager gets high grades because his or her parents constantly make him or her study and help to do most of the homework. In this case a child does very good at school but I think a college can show the opposite results. Finally, it is a discrimination against students to make available higher education only for good ones. So, if a students does poor and gets low grades he/she should be sent down. But if a person was never given a chance to try himself/herself at college what to do in this case? To sum up, I think that all young people should have the chance to get a higher education. To take or not this chance must be up to them. Lessons for the Young ECONOMIST Lessons for the Young ECONOMIST ROBERT P. MURPHY LvMI MISES INSTITUTE ISBN: 978-1-933550-88-6 Copyright © 2010 by the Ludwig von Mises Institute and published under the Creative Commons Attribution License 3.0. http://creativecommons.org/licenses/by/3.0. For information write the Ludwig von Mises Institute, 518 West Magnolia Avenue, Auburn, Alabama 36832. Mises.org v Contents Acknowledgments ix PART I: FOUNDATIONS 1. Thinking Like an Economist . 3 Thinking Like an Economist 3 Is Economics a Science? 5 The Scope and Boundaries of Economic Science 5 Why Study Economics? 8 2. How We Develop Economic Principles . 13 Purposeful Action versus Mindless Behavior 13 The Social versus the Natural Sciences 15 The Success of the Natural Sciences versus the Social Sciences 17 How We Develop Basic Economics .22 3. Economic Concepts Implied By Action . 31 Introduction 31 Only Individuals Act 32 Individuals Have Preferences 36 Preferences Are Subjective .37 Preferences Are a Ranking, Not a Measurement Using Numbers 39 Different Individuals’ Preferences Can’t Be Combined .42 4. “Robinson Crusoe” Economics Team Teaching Tips for Foreign Language Teachers Introduction This article seeks to provide team teachers with specific tips on how to function effectively as equal partners working together in the same classroom. These step-by-step tips are a basic guide to help you establish a dynamic team so you can experiment and find the approach that works best for you. For teachers who have never had a chance to team teach, or have perhaps avoided doing it for a variety of reasons, perhaps this article will help allay fears and give teachers a sense of what exactly team teaching 'looks like' within the class. From our work team teaching with one another and others in a variety of contexts (elementary, high school, junior high school, and international schools) in Canada, Mexico and Japan, we've had the chance to experience everything from wonderful to disastrous team teaching relationships. Based on these experiences, we have assembled a brief series of tips to help you and your classroom partner. Background Literature Team teaching, in the most general sense, encompasses a wide variety of arrangements. One specific form, which has become quite prevalent in recent years, is having two teachers in the classroom teaching simultaneously. This is becoming more and more common throughout Japan and in other Asian countries. Each year on the Japan Exchange and Teaching (JET) Programme alone, nearly 6,000 Assistant Language Teachers (ALT) come to Japan to assist Japanese Language Teachers (JLT) in foreign language classrooms (Horwich par. 22). Recently, Hong Kong launched a programme similar to JET called the Native-speaking English Teachers Programme (NET) Programme that also employs team teaching. In foreign language teaching, particularly teaching English as a foreign language (TEFL), usually one in the pair is a native speaking assistant of the target language. We’ll use the acronym NSA (native speaking assistant) to describe these teachers. The main teacher on the other hand, is usually more experienced and not a native speaker of the target language (hence the desire for a native speaking target language assistant). These teachers will be referred to as NNSLT (non-native speaking language teachers). In some countries where the target language (in this case English) is a second language (TESL), student teachers are native speakers of the target language and work either with other student teachers or cooperative teachers. These pairs share the same L1, are native speakers of the target language and share the same culture as their partner. These pairs usually do not experience the intercultural difficulties that some TEFL teachers experience and since they are in the process of becoming certified (in the case of student teachers), do not necessarily experience the same conflicts that some JTE/AET or HKTE/NET experience in Japan or Hong Kong and elsewhere. One of the advantages of team teaching is that it ostensibly produces a lower teacher- student ratio, but having two teachers in the class sharing turns speaking does not accomplish this. Only by running separate activities, dividing the class into groups - having both teachers circulate and interact with students is the ratio effectively lowered. Ideally, both teachers should constantly be actively involved in managing and teaching the class. Aside from these government sponsored programmes, there are countless others which are privately organised also resulting in the presence of a second teacher in the classroom. Team teaching is most common in July 2009 Part 1: Picking up flowers Part 2: Quick eyes, quickly write Part 3: Let’s sing English songs Part 1: Picking up flowers Pick up the flower you like. Answer the question hidden inside. You’ll get a nice present for each correct answer. 1 5 9 2 6 10 3 7 11 4 8 12 How’s the weather today? Lucky flower What does she do? She is a teacher. What do you want? I want ……………… What’s your favourite drink? My favourite drink is ……… [...]... animal It can sing It can fly What’s it? It’s a bird How many lamps are there in this livingroom ? There are two lamps in this livingroom Lucky flower Choose the best answer Would you like an apple? A Yes B I’d like an apple C Yes, please What does he do ? He plays football 1 What time does the library open? (7 a.m) - It opens at seven a.m 2 What time does the library close ? (4.30 p.m) - It closes at ...SERIES OF PRACTICE TESTS FOR GRADE - STUDENTS & TEACHERS 27 I borrowed the money _ the bank A to B of C for D from 28 We _ Betty since she moved to our neighborhood... been given 33 I'm really looking _ Christmas this year A after B out for C into D forward to 34 _ can come to the club You don't need to be a member A Someone B Every C Each one D Anyone 35... more older 31 You should hear Lucy play _ guitar A the B one C some D a 32 Betty _ a lot of presents on her birthday A was given B gave C was giving D was been given 33 I'm really looking

Ngày đăng: 18/10/2017, 23:28

Xem thêm

w