Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question No: In an auction house, there is a client/server system deployed. The

ID: 3626797 • Letter: Q

Question

Question No:

In an auction house, there is a client/server system deployed. The bidders login from client panel and the auctioneer (the person who controls the entire process) logs in as administrator for the entire process on server panel. The bidding process is as follows:

? The bidding starts with an initial amount specified by administrator, shown to all the bidders on screen

? Now all the other bidders start bidding with their own amounts (normally more than previous bid) at their turn.

? Each time a new bid is posted by bidder, it is automatically (immediately) shown to all the bidders with updated amount (on their screen.)

? The process continues until a certain bidder with maximum bid amount wins (when there are no more bids)


Now two students “Student-A” and “Student-B” both analyzing the above system, make following arguments:

Student-A: “I think this system represents the phenomenon, very much represented by observer pattern, in fact this is an example of observer pattern”

Student-B: “No, this is not observer pattern, according to my experience this is an analogy of Singleton pattern”


Analyze the arguments of both students, and suggest with solid reasons that which argument seems to be more realistic and why?

Explanation / Answer

it is an observer pattern because ,,better if u see the exact defenition which clearly shows its observer pattern where subject is the administrator/server ,observers are bidders.

The observer pattern (a subset of the publish/subscribe pattern) is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. It is mainly used to implement distributed event handling systems.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote