问题 阅读理解

Welcome to WeKnowDiets.com. We have compiled(汇集)the most comprehensive database of information for people who are looking for a trimmer body and healthier lifestyle. There are now thousands of Weight-Loss Products and Diet Programs available to choose from-that can be a little confusing. Our goal is to give you a quick snapshot(简介)of what options are available to you. We will inform you of the hottest new ingredients and which products and programs bring you the most quality and best results.

The most popular ones

NuPhedrine-burn 500 more calories per day

NuPhedrine is probably one of the best weight-loss pills ever made. What is so impressive about this pill is that the makers can honestly say that you WILL burn at least 500 more calories per day just by taking NuPhedrine. MORE

Miracle Fat Burning Cream

Imagine being able to target your problem areas for rapid results. Now you can do just that. We have found that Miracle Fat Burning Cream is clinically proven to burn fat and it uses a patented delivery technology that works immediately. MORE

Alli Diet Pill

This diet pill, claims to provide weight loss that “won’t be easy”. This product does not seem to promise particularly fast results, and instead emphasizes gradual weight loss. The accompanying book is intended to act as a companion to the weight-loss product. MORE

Bikini Boot Camp-14 days for a bikini body

It is a customized(需要定制的)back-to-basics system, which, regardless of its name, is actually about putting “fun” back into exercise while eating in a balanced way. The developers of this diet system make it accessible to everyone by bringing it into people’s homes-in both a book and an online-based plan. MORE

小题1:The passage is intended for those     .

A.with a slim figure

B.with high blood pressure

C.who are very fat

D.who seek for a healthy diet小题2:Which of the following emphasizes gradual weight loss?

A.NuPhedrine.

B.Miracle Fat Burning Cream.

C.Alli Diet Pill.

D.Bikini Boot Camp.小题3:Which of the follwing is produced in the form of thick liquid?

A.NuPhedrine.

B.Miracle Fat Burning Cream.

C.Alli Diet Pill.

D.Bikini Boot Camp.小题4:Bikini Boot Camp is different from the others in that     .

A.ordinary people can afford it

B.it is a diet program full of fun

C.you eat less but exercise more

D.it can save you much money

答案

小题1:C

小题2:C

小题3:B

小题4:B

选择题
问答题


阅读以下技术说明,根据要求回答问题1~问题4。
[说明]
某汽车停车场欲建立一个信息系统,已经调查到的需求如下。
1.在停车场的入口和出口分别安装一个自动栏杆、一台停车卡打印机、一台读卡器和一个车辆通过传感器等,其示意图见如图3-21所示。


2.当汽车到达入口时,驾驶员按下停车卡打印机的按钮获取停车卡。当驾驶员拿走停车卡后,系统命令栏杆自动抬起;汽车通过入口后,入口处的传感器通知系统发出命令,栏杆自动放下。
3.在停车场内分布着若干个付款机器。驾驶员将在入口处获取的停车卡插入付款机器,并缴纳停车费。付清停车费之后,将获得一张出场卡,用于离开停车场。
4.当汽车到达出口时,驾驶员将出场卡插入出口处的读卡器。如果这张卡是有效的,系统命令栏杆自动抬起;汽车通过出口后,出口传感器通知系统发出命令,栏杆自动放下。若这张卡是无效的,系统不发出栏杆抬起命令而发出告警信号。
5.系统自动记录停车场内空闲的停车位的数量。若停车场当前没有车位,系统将在入口处显示“车位已满”信息。这时,停车卡打印机将不再出卡,只允许场内汽车出场。
根据上述描述,采用面向对象方法对其进行分析与设计,得到如表3-11所示的类/用例/状态列表,如图3-22所示的用例图,如图3-23所示的初始类图以及如图3-24所示的描述入口自动栏杆行为的UML状态图。

表3-11 类/用例/状态列表

用例名说明类名说明状态名说明
Car entry汽车进入停车场CentralComputer停车场信息系统Idle空闲状态,汽车可以进入停车场
Car exit汽车离开停车场PaymentMachine付款机器Disable没有车位
Report Statistics记录停车场的相关信息CarPark停车场,保存车位信息Await Entry等待汽车进入
Barrier自动护栏Await Ticket Take等待打印停车卡
Car entry when full没有车位时,汽车请求进入停车场EntryBarrier入口的护栏Await Enable等待停车场内有空闲车位
ExitBarrier出口的护栏



[问题4]
简要解释图3-22中用例U1和U3之间的extend关系的内涵。