Draw a class diagram, showing the relevant classes, attributes, operations, and relationships, for the following situation (if you believe that you need to make additional assumptions, clearly state them for each situation). A laboratory has several chemists who work on one or more projects. Chemists may also use certain kinds of equipment on each project Attributes of Chemist include name and phoneNo. Attributes of Project include projectName and startDate. Attributes of Equipment include serialNo and cost. The organization wishes to record assignDate (the date when a given equipment item was assigned to a particular chemist working on a specified project) and totalHours (the total number of hours the chemist has used the equipment for the project). The organization also wants to track the usage of each type of equipment by a chemist. It does so by computing the average number of hours the chemist has used that equipment on all assigned projects. A chemist must be assigned to at least one project and to one equipment item. A given equipment item need not be assigned, and a given project need not be assigned either a chemist or an equipment item.
Draw a class diagram, showing the relevant
classes, attributes, operations, and relationships, for the following situation (if you believe
that you need to make additional assumptions,
clearly state them for each situation).
A laboratory has several chemists who work
on one or more projects. Chemists may also
use certain kinds of equipment on each project Attributes of Chemist include name and phoneNo. Attributes of Project include projectName and startDate. Attributes of Equipment
include serialNo and cost. The organization
wishes to record assignDate (the date when
a given equipment item was assigned to a particular chemist working on a specified project)
and totalHours (the total number of hours the
chemist has used the equipment for the project). The organization also wants to track the
usage of each type of equipment by a chemist.
It does so by computing the average number
of hours the chemist has used that equipment
on all assigned projects. A chemist must be assigned to at least one project and to one equipment item. A given equipment item need not be
assigned, and a given project need not be assigned either a chemist or an equipment item.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images