问题 解答题

设计框图实现1+3+5+7+…+131的算法.

答案

解:算法如下:

第一步,赋初值i=1,sum=0.

第二步,sum=sum+i,i=i+2.

第三步,如果i≤131,则反复执第二步;否则,执行下一步.

第四步,输出sum.

第五步,结束.

程序框图如图.

分析:由于需加的数较多,所以要引入循环结构来实现累加.观察所加的数是一组有规律的数(每相临两数相差2),那么可考虑在循环过程中,设一个变量i,用i=i+2来实现这些有规律的数,设一个累加器sum,用来实现数的累加,在执行时,每循环一次,就产生一个需加的数,然后加到累加器sum中.

阅读理解

(6)阅读理解
It is time for students to sell such things as chocolate bars and greeting cards to raise money for their school, class or club. It is inevitable that they will knock on your door and you will easily hand ever your cash for overpriced items that you really do not want. That is okay, though, because there are many reasons why children should be allowed to raise money for their schools and clubs.
Fundraising(自筹资金) is a great way to help children learn social skills. It is not easy to go up to a complete stranger and ask them for their money. They have to nicely ask for help, show the interested buyer what they have to offer and explain how it will help them in school. If someone refuses to buy an item, that child has to take the failure in stride(从容处理), and that is a learning lesson as well.
Students can learn how to deal with money by fundraising. Of course, it might seem safer for us to take charge of our children’s earnings from their fundraising before it is turned in to the school. However, by making them keep track of it, count it, and make sure everyone pays the right amount, they are learning an important lesson. Dealing with money is important to know about when they are older.
Fundraising helps improve their schools. It is the child’s school. They have to learn there and grow there. Why not let them help in making it a better place? When one of our local schools lacked funding for sports, the students and parents joined hands to raise that money needed. When they succeeded, they felt they accomplished something important.
Fundraising allows for more life experiences for the child. Most fundraising is done for individual classes and clubs. The raised money is used towards things like parties, trips. The children receive the rewards for their hard work at raising the money. Without fundraising, these field trips and special school memories would be missed.
In a word, fundraising helps children a lot in many ways.
1. We can infer that the author is probably a       .
A. manager   B. student   C. parent    D. officer
2. What is the main idea of this passage?
A. Children should be allowed to fundraise.
B. Fundraising is good for both families and children.
C. Children should learn to deal with money.
D. Children should be taught how to fundraise.
3. Which of the following is not the benefits of fundraising by students?
A. It’s a good way to gain social skills for students.
B. Students can master the skills in financing through it.
C. It can help students get high mark at school.
D. It gives students many valuable life experiences.
4. The author thinks that fundraising         .
A. adds to the family’s burden        B. wastes the learning time
C. cultivates the children’s character   D. builds up the children’s bodies
5. Which of the following shows the structure of the passage?
CP: Central point   P: Point    Sp: Sub-point(次要点)   C: Conclusion

D

 
C
 
B
 
A

 
单项选择题