下列给定程序中,函数fun()的功能是;计算函数 F(x, y ,z)=(x+ y)/(x-y)+(z+ y)/(z-y)的值。其中x和y不相等,z和y不等。例如,当x的值为9,y的值为11,2的值为15时,函数值为-3.50。 请改正程序中的错误,使它能得出正确的结果。 注意:不要改动main 函数,不得增行或删行,也不得更改程序的结构。 试题程序: #include <stdio. h> #include <math. h> /**************found******************/ #define FU(m, n) (m/n) float fun(float a, float b, float c) { float value; value=FU(a+ b, a-b)+FU(c+ b, c-b); /*************found******************/ return(Value); } main() { float x, y, z, sum; printf ("Input x y z:: "); scanf("%f%f%f", &x, &y, &z); printf("x=%f, y=%f, z=%f\n ",x, y, z); if (x==y||y==z) {printf ("Data error! \n "); exit (0); } sum=fun (x, y, z); printf("The result is:%5. 2f\n ",sum); }
查看答案
Nowadays, the Americans frequently read newspaper articles about violent crimes, see rages of inhumanity on the evening news, and hear sound bites on the radio describing cruelty and intolerance. (46) We worry, particularly, about the effects on our children of our own society, a society that is less safe and less hospitable than the one we experienced as children growing up during the 1950’s and 1960’s.(47) In many school districts throughout America, there is already compelling evidence that adolescents have been affected negatively by changing social conditions, including by what many American believe to be a decline of basic human values. Parents and teachers must contend often with adolescent aggression, profanity, and disrespect. Some students display antagonistic attitudes and behave inappropriately. Some students are insensitive and unkind to their classmates, discourteous to adults, and quick to express their anger by raising their voices or using profanity.It is the responsibility of parents to teach their children to be polite, courteous, and forbearing. (48) It is one of parents’ most fundamental responsibilities to impart to their children the values of integrity, decency, and respect for others; teachers and school administrators should never become, however, ethical bystanders. If we wish to realize our educational philosophy not only to educate our students but also to encourage them to accept the innate worth of every human being, we must not surrender the ideal of maintaining a moral community at our school, where all people have an obligation to be polite and tolerant of individual differences.(49) Some individuals believe that school personnel should not interfere with the behavior of students unless it is directly related to learning or affects the safety of individuals who are inside the school building or somewhere on campus. But good teachers and administrators do teach values--not personal, private values but common values of courtesy, mutual respect, persistence, responsibility, and self-reliance.(50) Ideally, educators affirming socially-responsible values taught at home by parents and demanding appropriate vocabulary and good manners from their students should have been valued as competent and successful educators. They should remind the students of saying" please" and" thank you" and remind them of not interrupting when others are speaking. It is very much the responsibility of teachers and administrators to promote our school’s traditions of proper behavior and good sportsmanship. Therefore, school educators should be judged by the moral and ethical climate of their school. All the academic improvements of the school notwithstanding, no teachers should be considered successful educators unless their students graduated not only as successful learners but also as ladies and gentlemen. 47
Directions: Tom, your classmate, has won English Speaking Contest sponsored by CCTV. You watched the con-test at that time and you are very proud of him. Now, you are going to write him a letter to convey your congratulations on his success. Write your letter in no less than 100 words. Write it neatly on ANSWER SHEET 2. Do not sign your own name at the end of the letter; use" Li Ming" instead. Do not write the address.
案例七:黄先生在北京购买了一套价值100万元的普通住宅。 根据案例七,回答40~46题: 黄先生购房时办理的是公积金贷款,则需要支付律师费为( )元。
A. 0
B. 100
C. 400
D. 1000
案例九:徐女士在北京一所大学教书,2009年她向银行申请了20年期50万元贷款,利率为6%。 根据案例九,回答51~57题: 若徐女士采用等额本金还款法来还贷,则她第一个月还款额为( )元。
A. 3871
B. 4123
C. 4265
D. 4573