问题 问答题

试题三

阅读下列说明和图,回答问题1至问题3,将解答填入答题纸的对应栏内。

【说明】 某网上药店允许顾客凭借医生开具的处方,通过网络在该药店购买处方上的药品。该网上药店的基本功能描述如下:

(1)注册。顾客在买药之前,必须先在网上药店注册。注册过程中需填写顾客资料以及付款方式(信用卡或者支付宝账户)。此外顾客必须与药店签订一份授权协议书,授权药店可以向其医生确认处方的真伪。

(2)登录。已经注册的顾客可以登录到网上药房购买药品。如果是没有注册的顾客,系统将拒绝其登录。

(3)录入及提交处方。登录成功后,顾客按照“处方录入界面”显示的信息,填写开具处方的医生的信息以及处方上的药品信息。填写完成后,提交该处方。

(4)验证处方。对于已经提交的处方(系统将其状态设置为“处方已提交”),其验证过程为: ①核实医生信息。如果医生信息不正确,该处方的状态被设置为“医生信息无效”,并取消这个处方的购买请求;如果医生信息是正确的,系统给该医生发送处方确认请求,并将处方状态修改为“审核中”。 ②如果医生回复处方无效,系统取消处方,并将处方状态设置为“无效处方”。如果医生没有在7天内给出确认答复,系统也会取消处方,并将处方状态设置为“无法审核”。 ③如果医生在7天内给出了确认答复,该处方的状态被修改为“准许付款”。 系统取消所有未通过验证的处方,并自动发送一封电子邮件给顾客,通知顾客处方被取消以及取消的原因。

(5)对于通过验证的处方,系统自动计算药品的价格并邮寄药品给己经付款的顾客。 该网上药店采用面向对象方法开发,使用UML进行建模。系统的类图如图3-1所示。

根据说明中的描述,给出图3-1中缺少的C1~C5所对应的类名以及(1)~(6)处所对应的多重度。

答案

参考答案:

C1:付款方式 C2:处方 C3:信用卡 C4:支付宝账户 C5:处方上药品(或药品) (1)1 (2)0..* (3)1 (4)1..* (5)0..* (6)1

阅读理解

阅读理解。

     Peter likes fish very much. He often buys a lot of fish in the shop and takes them home. But when his wife sees the

fish, she says to herself (她自己), "Good, I can ask my friends to have lunch, and we can eat fish. They like fish very

much."

     So when Peter comes back in the evening, the fish are not there. His wife always says, "Oh, your cat eats your fish."

Peter feels very angry (生气的) about that. He takes his cat and his wife to the shop near his house and weighs (称…

的重量) the cat. The cat is one kilo and a half. He looks at his wife and says, "My cat is one and a half kilos, and now

it weighs one kilo and a half, so my cat is here. But where is my fish?"

1.Peter often buys a lot of fish ______________.

A. for her wife                    

B. in the shop

C. at home                      

D. for his cat

2.  Peter's wife ______________.

A. eats all the fish                  

B. cooks the fish for Peter

C. asks her friends to eat the fish      

D. gives the fish to the cat

3.  Peter comes home from work _____________. 

A. at noon                        

B. in the afternoon

C. at night                        

D. in the evening

4.  Peter takes his wife and his cat to the shop _____________.

A. to look for the fish              

B. to weigh the cat

C. to weigh his wife                

D. to buy some fish

5.  Peter's wife _____________.

A. doesn't know where the fish is

B. doesn't know where the cat is

C. doesn't tell Peter where the fish is

D. feels angry about the cat

解答题