Question No. 1 [Marks 10]: Given Below is the supposed rough Object Model of a mathematics library, which can be used by any (client) software, to perform mathematical calculations. The client software can call the functionality through class objects. You need to re-arrange (re-design) this object model by implementing the Façade Pattern (i.e. you need to implement façade pattern on this model).


Question No 2 [Marks 10]:

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?


Sponsored Links