问题 问答题


阅读以下关于项目工作管理系统的数据库设计说明,根据要求回答问题1~问题4。
[说明]
某软件开发公司,决定结合自身工作的需求开发设计本公司的项目工作管理系统,由郭工程师承担数据库的设计工作。公司项目管理的需求分析如下。
1.组织机构。该公司有多个部门,每个部门有多个职员、多个办公室,每个办公室有一部电话。当部门变更时更换新的部门代码。职员辞职后,若再次被聘用仍使用辞职前的代码。被聘用职员担任某职务,职务用职务代码来标识。职务分为:工程师、高级工程师、经理助理、经理等。职员的工资根据等级区分,共分为S、A、B、C、D 5个等级。一个职务对应某个等级,一个等级对应多个职务。职员月工资等于职员月工作时间(小时)乘以小时工资。职员的人事变动及职位变更(升级、降级)在月初进行。
2.项目管理。项目用项目代码标识,使用过的项目代码不能重复使用。一个部门可承担多个项目,但一个项目仅由一个部门承担。一个项目有一名项目主管和多个职员;一个职员可参加多个项目。项目代码由系统自动生成,一旦项目建立,项目名、部门代码及起始年月日不能再变更。
3.项目的工作管理流程为:项目工作计划输入(初始计划)→工作业绩输入→业绩生成(每月一次)→计划修正(每月一次)。
①项目工作计划输入。项目主管使用如图1-9所示的计划输入界面,输入项目代码、职员代码、职员参加某个项目的月工作时间(计划)。图中空白区域为可输入项。

项目代码123456项目名ABCD部门代码03部门名开发部
起始年月日2007-06-11结束年月日2007-11-31登陆时间2007-05-28
职员代码职员名6月7月8月9月10月11月12月1月2月3月4月5月合计
0302小郭1201801801801801801020
0316小谢120180180150150150930
0309张三90150150180180180930
0328李四12018018012012090870
0321王五9015015015015090810
  ②工作业绩输入。输入职员每天参加各个项目的工作时间。如图1-10所示为工作业绩输入界面,图中空白区域为可输入项。其中,出勤时间由考勤系统管理,指定项目代码的顺序可以不同,并且一天可以输入多个项目代码,但同一个项目代码不能重复输入。
职工代号0302职员名小郭输入年月20076月
年月日星期出勤时间每个项目的工作时间
项目代码工作时间项目代码工作时间备注
2007-06-1112.01234568.03456784.0
2007-06-12

15.0

12345610.03456785.0
2007-06-1318.012345615.03456783.0
2007-06-1415.012345615.0
2007-06-1518.012345618.0
2007-06-1610.012345610.0
2007-06-170.0
③业绩生成。月底汇总职员的当月工作业绩,生成月工作业绩表。
④计划修正。项目主管根据项目进度修改以后的工作计划。
郭工程师根据公司的项目需求将数据库关系模式设计如下:
部门(部门代码,部门名,起始年月,终止年月,办公室,办公电话);
职务(职务代码,职务名);
等级(等级代码,等级名,年月,小时工资);
职员(职员代码,职员名,部门代码,职务代码,任职时间);
项目(项目代码,项目名,部门代码,起始年月日,结束年月日,项目主管);
工作计划(项目代码,职员代码,年月,工作时间)。

[问题2]
请将以下关系模式中的(1)和(2)空缺处填入属性名称(要求使用题干说明中已有的属性名称)。
(1)郭工程师设计的关系模式不能管理职务和等级之间的关系,可以通过修改“职务”关系模式来实现。修改后的关系模式为:
职务( (1) )
(2)为了管理公司职员参加各项目每天的工作业绩,需设计工作业绩关系模式为:
工作业绩( (2) )

答案

参考答案:

解析:[问题2] 郭工程师所设计的关系模式不能管理职务和等级之间的关系,为此可以在“职务”关系模式中增加属性“等级代码”来实现,修改后的关系模式如下。 职务(职务代码,职务名,等级代码) 为了管理公司职员参加各项目每天的工作业绩,需设计工作业绩的关系模式。根据图1-10所给出的工作业绩输入界面实例分析,可得工作业绩关系模式如下。 工作业绩(项目代码,职员代码,年月日,工作时间)

判断题
完形填空
完型填空。
     I returned to Abuja, the capital of Nigeria, after graduation.I had been there before my mother became a minister. Two weeks later, I told my mother I was bored.She said, "Here're the car keys. Go and buy
some fruit."    1   I jumped into the car and speeded off.  
     Seeing me or rather my    2  , a boy sprang up (跳起来),   3   to sell his bananas and peanuts."Banana 300 naira.Peanut 200 naira!" Looking at his blackstriped bananas, I   4   to 200 total for the fruit and nuts.He    5  . I handed him a 500 naira note. He didn't have    6   , so I told him not to worry. He was   7   and smiled a row of perfect teeth.  
     When, two weeks later, I   8   this same boy, I was more aware of my position in Nigerian society. I
should   9   this country as the son of a    10  . But it was hard to find pleasure in a place where it was so 
  11   to see a little boy who should have been in school selling fruit.   
     "What's up?" I asked. He answered in   12   English, "I...I no get money to buy book." I took out two
500 naira notes. He looked around   13   before sticking his hand into the car   14   the bills. One thousand naira means a lot to a family that   15   only 50,000 each year.
     The next morning, security officers told me, "In this place, when you give a little, people think you're a
fountain of opportunity (机会)."   16   it's right, but this happens everywhere in the world.I wondered if my little friend had actually used the money for    17  . After six months' work in northern Nigeria, I returned
and saw him again standing on the road. "Are you in school now?" He nodded. A silence fell as we looked at each other, then I   18   what he wanted.I held out a 500 naira note."Take this." He shook his head
fiercely and stepped back   19   hurt. "It's a gift," I said.Shaking his head again, he handed me a basket of bananas and peanuts."I've been waiting to   20   these to you."
( )1.A.Encouraged
( )2.A.car    
( )3.A.willing  
( )4.A.got down  
( )5.A.explained
( )6.A.change    
( )7.A.troubled  
( )8.A.ran after
( )9.A.protect  
( )10.A.minister
( )11.A.lucky    
( )12.A.old      
( )13.A.proudly  
( )14.A.for      
( )15.A.spends  
( )16.A.Possibly
( )17.A.joys    
( )18.A.asked    
( )19.A.when    
( )20.A.send    
B.Disappointed  
B.mother      
B.afraid        
B.bargained down
B.promised      
B.notes        
B.regretful    
B.ran into      
B.enjoy        
B.headmaster    
B.amazing      
B.broken        
B.madly        
B.with          
B.pays          
B.Actually      
B.nuts          
B.imagined      
B.as if        
B.provide      
C.Delighted    
C.driver    
C.eager        
C.put down    
C.agreed      
C.checks      
C.comfortable  
C.ran over    
C.help        
C.manager      
C.funny        
C.traditional  
C.curiously    
C.at          
C.makes        
C.Certainly    
C.books        
C.reminded    
C.even if      
C.sell        
D.Confused    
D.keys        
D.ashamed    
D.took down  
D.admitted    
D.bills      
D.grateful    
D.ran to      
D.support    
D.president  
D.common      
D.modern      
D.nervously  
D.upon        
D.affords    
D.Fortunately
D.bananas    
D.realised    
D.after      
D.give