问题 解答题

写出求过两点P1(x1,y1),P2(x2,y2)的直线的斜率的算法,并画出流程图.

答案

由于当x1=x2时,过两点P1、P2的直线的斜率不存在,只有当x1≠x2时,根据斜率公式

k=求出,故可设计如下的算法和流程图.

算法如下:

第一步:输入x1,y1,x2,y2;

第二步:如果x1=x2,输出“斜率不存在”,否则,

k ←;

第三步:输出k.

相应的流程图如图所示:

由于当x1=x2时,过两点P1、P2的直线的斜率不存在,只有当x1≠x2时,根据斜率公式

k=求出,故可设计如下的算法和流程图.

算法如下:

第一步:输入x1,y1,x2,y2;

第二步:如果x1=x2,输出“斜率不存在”,否则,

k ←;

第三步:输出k.

相应的流程图如图所示:

填空题
阅读理解

There is more to tourism in Britain than you might think.

When you think of tourist sites in Britain, what do you think of? Big Ben and the Tower of London? Lock Ness? Shakespeare’s birthplace at Strafford-upon-Avon? There are many famous tourist attractions in the UK and they attract millions of visitors each year. But along with the famous names there are thousands of other interesting places that are only open to the public for a few days each year. Heritage Open Days takes place each September and lets the public visit places that would normally be out of bounds. Among the thousands of historic sites there are castles and factories, town halls and churches. Here we look at some of the places that most tourists might not know about.

Roman Baths --- Chester

These Roman baths are almost two thousand years old and a fascinating insight into the history of the city but they aren’t often open to visitors because they are under a clothes shop and a shop that sells baked potatoes! In Open Days week, visitors can go downstairs to the basement of the shops and find a little piece of history.

Tennis Club --- Birmingham

Edgbaston Tennis Club opened in 1860 and is the oldest tennis club in the world. Visitors can see the club’s collection of tennis clothes and equipment and learn about the game’s rich history.

Ardman Animation --- Bristol

The studios that produced the famous Wallace and Gromit animated films open its doors to the public to let people find out more about how the films are made.

Paddock Wood --- Kent

A family house where some of the rooms are unchanged since the 1920s. The home’s owner, Sarah Hamilton, is happy to open her doors to the public, saying “I’m passionate about history and I love taking to people.”

These are just a few of the thousands of places to visit each year. If you’re visiting Britain in September ---- look out for Open Days!

小题1:Where is the Roman Baths --- Chester?

A.Next to a clothes shop.

B.Above a potato shop.

C.In Open Days week.

D.In a basement of two shops.小题2:Which place might be most attractive to movie fans?

A.Paddock Wood --- Kent

B.Tennis Club --- Birmingham

C.Roman Baths --- Chester

D.Ardman Animation --- Bristol小题3:What common things can tourists learn about at the four interesting places in the passage?

A.Collection.

B.Structure.

C.History.

D.Style