Consider the COMPANY ER schema of Figure 7.2. Think of what operations are needed for the entity types/classes in the schema. Do not consider constructor and destructor operations.

What will be an ideal response?


```
(Company database operations)
define class EMPLOYEE:

operations raise-salary ( pct : float ) : boolean;
change address ( new : Address ) : boolean;
get-age : integer;
get-supervisor : Employee;
get-supervisees : set ( Employee );
show-projects : set ( tuple ( Pname : Project,
hours : integer ) );
show-dependents : set ( Dependent );
define class DEPARTMENT:

operations count-emps : integer;
get-manager : Employee;
get-locations : set ( String );
list-controlled-projects : set ( Project );
define class PROJECT:

operations get-department : Department;
show-emp-hours : float;
show-dept-contributions : set ( tuple
( D : Department,
set ( tuple ( emp : Employee,
hrs : integer )
) ) );
Many other operations are possible, as well.
```

Computer Science & Information Technology

You might also like to view...

If you would like to print only the report title on the first page of a printed report, you ________

A) insert a page break above the Report Header B) insert a page break below the Report Header C) include the page number in the Report Header D) delete the Report Header

Computer Science & Information Technology

On a Windows Vista client, you configure the IP address of a WINS server in the WINS settings under _______________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Describe the various ways in which multimodal biometrics systems can be designed.

What will be an ideal response?

Computer Science & Information Technology

Rajit wants to display the data in his worksheet using graphics. Rajit knows that all of the following are true about charts EXCEPT: ____.

A. You cannot change the type of a chart. B. You can resize a chart by dragging a sizing handle on the canvas. C. To remove a chart element, select it, and then press Delete. D. An embedded chart is useful if you want to view the chart and the data at the same time.

Computer Science & Information Technology