Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

QUESTION 1

We need to write Z specifications to record the information about passengers on board an aircraft. Here you are required to produce the specifications using appropriate schemas. Do not consider seat numbers, passengers are allowed on board on a first-come-first-serve basis. Take only a set as the basic type and the condition that at any time there cannot be more passengers than the maximum limit.
(a) Write the schema to represent the current system state.

(b) Write a valid initial state for the system that is at the time when the aircraft is still empty.

(c) Write an operation to allow a passenger to board the aircraft.

(d) Write an operation for the disembarkation of a passenger.

(e) Write a schema to count the number of passengers on board the aircraft.

(f) Write a schema to verify if a passenger called ‘Peter' is on board the aircraft.

QUESTION 2

The University Badminton Club

Here we need to refine the specification for the badminton club given below to describe the activities in the hall which contains one badminton court, where members of the club come to play.
Members in the hall are either playing a game on the court, or effectively in a queue, waiting to play. Here the queue will be modelled as an injective sequence called waiting and we represent those playing a game by onCourt.

The schema to describe the current system state is currently the following:-

[STUDENT] - basic type→maxPlayers: Ν ∩_______________ →maxPlayers = 20 ∪_ClubState__________________________________ →badminton: Π STUDENT →hall: Π STUDENT ∩_______________ →hall ζ badminton →# hall ? maxPlayers ∠_______________________________________

(a)Rewrite the current state schema to describe the activities inside the hall. You may call the new schema for the current system state ClubState2.

(b)Write a schema for the operation of beginning a new game.

(c)Write a schema for the operation of ending a game.

(d)Write a schema for the operation of removing a person from the hall.

(e)Write a schema to specify an operation for a person to enter the hall and join the back of the waiting queue.

QUESTION 3:

A system records the booking of hotel (Le Coco Beach) rooms on one night. Here you are given the following basic types:

• [ROOM] set of all rooms in the hotel
• [PERSON] set of all possible persons

(a) Write a schema to represent the current system state. You must indicate clearly the type of relation you have identified for this system.

(b) Write a valid schema to represent the initial system state.

(c) Write the schema to represent the successful booking of a room by a person called Anthony.

(d) Write the schema to represent the cancellation of a room by a person called Jimmy.

(e)Write the schema to know if a person has already booked the room 007.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9584963

Have any Question?


Related Questions in Computer Engineering

Penetration testing is a technique used to identify

Penetration testing is a technique used to identify security weaknesses in your network. Discuss a type of penetration testing and the different methods utilized to recognize vulnerabilities in your network.

Question discussion pointdefine and briefly discuss the

Question: Discussion point: Define and briefly discuss the following brainstorming techniques, the delphi technique, brainstorming, or nominal group technique. Please read the above discussion point and write the respons ...

Letang industrial systems company lisc is trying to decide

Letang Industrial Systems Company (LISC) is trying to decide between two different conveyor belt systems. System A costs $300,000, has a four-year life, and requires $101,000 in pretax annual operating costs. System B co ...

Please discuss the design principles that guide the authors

Please discuss the design principles that guide the authors of instruction sets in making the right balance. Provide examples of application of each of the three design principles while designing instruction sets.

Describe a ping of death attack as an attack that causes

Describe a ping of death attack as an attack that causes the victim computer to freeze and malfunction.

Discuss how a successful organization should have the

Discuss how a successful organization should have the following multiple layers of security in place for the protection of its operations: Information security management. Data security Network security

Jason who is very knowledgeable regarding computers agrees

Jason, who is very knowledgeable regarding computers, agrees to purchase computers for Nick's business. Jason is retained for that purpose only, he is paid a set rate for the job, and Nick exercised no control over the m ...

What are some of the uses of bayes theorem as in what type

What are some of the uses of bayes' theorem. As in what type of problems could I come across in a Biostatistics quiz

Question suppose we have a disk with capacity 98304 gb if

Question : Suppose we have a disk with capacity 98.304 GB, if number of platters 16, an average of 300 sectors per track and 20,000 tracks per surface. Then calculate the number of bytes per sector.

Discuss the importance of using an access control model in

Discuss the importance of using an access control model in determining how employees in an organization should gain access to resources.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As