Microsoft interview question

How would you design a beverage machine application?

Interview Answers

Anonymous

19 Jul 2015

I would first get some more information. Design a beverage machine application is vague. Is this a liquid beverage dispenser (Soda, Coffee fountain), or does it dispense bottles or cans of beverages (Coke or Pepsi vending machine). Is it coin operated? Is it for public use or private? How many different beverages does it support, (one or more)? Given that I understand the customer request fully I can begin to design the application. Once understood I would begin defining the atomic actions needed to deliver a beverage in this machine. (pull tap or insert coin, pick a brand or flavor, etc.) Once all the actions are defined on how someone would get their beverage I would arrange those actions into logical buckets and define how they interact. I would go over the flow and add safeguards, limits, and exception handlers. At this point I have a product that defines the "happy path" and has some safeguards to insure it works in a preferred environment. Now I can add bells and whistles to differentiate my product from the marketplace.

17

Anonymous

10 Jul 2015

Depends on what kind of beverages 1st,2nd location,3rd is it a game app.is it for public or commercial sales.it b waste of energy

7

Anonymous

10 Jul 2015

Waste of time.or can put one in jails.

Anonymous

10 Jul 2015

What's where's it for

1