Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a course registration system, at a certain time before the start of the semester, the course is open for registration. A student may register

Consider a course registration system, at a certain time before the start of the semester, the course is open for registration. A student may register for that course if there are seats available. If the course is full, students who try to register will be put on a wait queue, to be added in a first-first come manner if spots open up. Two weeks after the start of the semester, registration will be closed, which means no one can drop or add course. Note that course can be canceled at any time.

(a) draw a state diagram for a simple course registration. On each iteration, write the events trigger the transition.

(b) Show how your diagram would be implemented using the state design patterns(which include the singleton pattern) by writing the outline of aa classes and method headers that are essential for the pattern? Also, outline the implementation of each state method to show the transition bounded by that method - the transition event condition may be written out in pseudo code (no need to construct event objects)

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

How would you describe promotion?

Answered: 1 week ago