请编写函数fun(),其功能是:计算并输出下列多项式的值。 S=1+4/(1+2)+1/(1+2+3)+…+1/(1+2+3+…+n) 例如,着主函数从键盘给n输入50后,则输出为 S=1.960784。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include <stdio.h> double fun(int n) main () int n; double s; printf ("\nInput n: "); scanf ("%d", &n); s=fun (n); printf ("\n\ns=%f\n\n", s);
查看答案
Dinkum’s informed their workforce last week that in a desperate attempt to save jobs, they would move over to a job-share system. Rather than face unemployment, their workers are being offered the chance to work on a half-time basis where two people will share the responsibility of one. "We’re giving our workers a choice. They can take redundancy if they prefer but if they want to stay with us, we can only offer them half their previous earnings," said a spokesman for the factory. Beryl Harris, 47, is one of the many workers who have opted for the job-share arrangement. "I know what it’s like to be unemployed. I’ve watched my husband lose his self-respect in these last two years." Sunnington has one of the highest unemployment rates in the country. Ron has been looking for work since Dinkum’s broke the news to him two and a half years ago. "I’ve probably applied for more than a hundred jobs: as a laborer, a watchman and so on and I even tried to get a job as a dustman once--bnt nobody wants a guy of my age." Ron’s experience is not uncommon. "The streets are full of broken men and the employment exchange is one of the worst places imaginable." Ron and Beryl are already starting to worry about whether their two teenage children will find work when they leave school. "It’s bad enough with two of us trying to keep busy at home in the afternoons now but I have nightmares thinking about four of us without jobs," says Beryl. When asked what they think of Dinkum’ s new job-share plan, Ron and Beryl Were in agreement. "At least they’re trying to find a solution. It’ s not their fault that this government of this country has made such a mess of things. Anything’s better than living on state benefit and waking up every day without anything to do." Ron recalled cases of an unemployed man committing suicide in a nearby town. "I can see why he did it but I’ll never get to that stage." It’s a widely recognized problem that people who do not work can become severely depressed and listless. What does the new mechanism do to solve the problem of unemployment
A. It guarantees job for people who are employed currently.
B. It helps to get work for more people by giving each of them less work.
C. It ensures a welfare payment to unemployed people.
D. It helps people to find new jobs through providing training.
Passage ThreeQuestions 32 to 35 are based on the passage you have just heard,
A college diploma will help one to get a successful career more easily.
B. After college education, one should not pursue further education.
C. After college education, one must have an MBA from a first-rate university.
D. After college education, the more one gets education, the less he will earn after graduation.
Dinkum’s informed their workforce last week that in a desperate attempt to save jobs, they would move over to a job-share system. Rather than face unemployment, their workers are being offered the chance to work on a half-time basis where two people will share the responsibility of one. "We’re giving our workers a choice. They can take redundancy if they prefer but if they want to stay with us, we can only offer them half their previous earnings," said a spokesman for the factory. Beryl Harris, 47, is one of the many workers who have opted for the job-share arrangement. "I know what it’s like to be unemployed. I’ve watched my husband lose his self-respect in these last two years." Sunnington has one of the highest unemployment rates in the country. Ron has been looking for work since Dinkum’s broke the news to him two and a half years ago. "I’ve probably applied for more than a hundred jobs: as a laborer, a watchman and so on and I even tried to get a job as a dustman once--bnt nobody wants a guy of my age." Ron’s experience is not uncommon. "The streets are full of broken men and the employment exchange is one of the worst places imaginable." Ron and Beryl are already starting to worry about whether their two teenage children will find work when they leave school. "It’s bad enough with two of us trying to keep busy at home in the afternoons now but I have nightmares thinking about four of us without jobs," says Beryl. When asked what they think of Dinkum’ s new job-share plan, Ron and Beryl Were in agreement. "At least they’re trying to find a solution. It’ s not their fault that this government of this country has made such a mess of things. Anything’s better than living on state benefit and waking up every day without anything to do." Ron recalled cases of an unemployed man committing suicide in a nearby town. "I can see why he did it but I’ll never get to that stage." It’s a widely recognized problem that people who do not work can become severely depressed and listless. What can be inferred from this passage
A. There are a lot of people like Ron.
B. There is few companies in this county.
C. People in this county do not want to work.
D. The county is far away from major business center.