Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A central computer, connected to remote terminals via communication links, is used to automate seat reservations for a concert hall. A booking clerk can display

A central computer, connected to remote terminals via communication links, is used to automate seat reservations for a concert hall. A booking clerk can display the current state of seat reservations on the terminal screen. In order to book a seat, a client chooses a free seat and then the clerk enters the number of the chosen seat at the terminal and issues a ticket. A system is required which avoids the double-booking of seats while allowing clients free choice of the available seats.

(a) Construct a model and prove that the model does not permit double-booking.

(b)Construct a model using Petri Nets (any kind).

(c) Write a Java program implementing the seat reservation system.

Hint:

(a) For the LTSA model possible processes are SEAT, CLERK (or CLIENT). Moreover, it is only necessary to model a small number of them.

(c) For the Java implementation, identify properly the active and passive processes. Moreover, implement the selection of a seat by a client as a procedure which selects a seat randomly.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago