Determine the number of employees the company has.

Assignment Help Software Engineering
Reference no: EM131941733

OCL Assignment

Using the attached model of a company and its employees, please express the following requirements using OCL. Note: for some of these you will need to modify the class diagram; you may either modify the diagram directly and scan it in or you may specify in your answer textually how to modify the class diagram (e.g., for class: Project, add method X() , etc.). Finally, it is alright if you want to add a class or two to the diagram.

Express the following requirements using OCL:

1. Calculate the age of an employee.

2. The project leader is a project member.

3. All company employees must be over 18 years old.

4. The list of employees working in a department should always be sorted by last name.

5. Find the subset of employees who are older than 50.

6. Determine the number of employees the company has.

7. An employee's start date must be earlier than his/her last date (employment "to" date.) For current employees, the "to" date of employment is today's date.

8. All project members must be current employees.

9. Using OCL, define an operation to return the set of issued cards for a given department in a company.

10. Write ONE pre-condition and ONE post-condition for company.hire() that semantically fits using the other model elements.

11. Write one complex OCL expression using at least TWO levels of navigation AND write the natural language requirement represented by that OCL expression. You may add to the class diagram for this problem if you wish.

Reference no: EM131941733

Questions Cloud

What advice would you give them in regard to cyberbullying : If you were speaking to a group of middle school students what advice would you give them in regard to cyberbullying?
Population mean accounts receivable : Use a 0.01 level of significance to test whether the population mean accounts receivable is different from $200.
What aspects of culture should be given consideration : Should all cultures be given equal consideration in health care policies? What aspects of culture should be given consideration in the health care industry?
What is the standard deviation of the sample mean : (a) What is the mean of the sample mean life? (b) What is the standard deviation of the sample mean?
Determine the number of employees the company has. : Determine the number of employees the company has. define an operation to return the set of issued cards for a given department in a company.
What is the probability that during a sample : What is the probability that during a sample of n = 36 fishing days, the total weight of the catch will be 4,320 tonnes or more?
Identify and assess the type of evidence offered in support : Identify and assess the type of evidence offered in support of the argument position. This will include identifying premises and conclusions.
Explain the difference between a population and a sample : 1. Explain the difference between a population and a sample. Give five examples.
Importance of mis in relation to data-driven decisions : Revise the previous proposal based upon the comments from your instructor. Explain the importance of MIS in relation to data-driven decisions.

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd