一道关于高朋网(Groupon)的设计模式题(英文版)
来源:互联网 发布:去美国生孩子 知乎 编辑:程序博客网 时间:2024/06/06 20:34
从国外某大学设计模式课程试卷上找到的一道设计模式试题,Sunny暂不翻译,,大家可以尝试做做先!
Groupon has already been called the “fastest growing company in history” by the Forbes magazine. In it’s second full year of business, 2010, it pulled down $713.4 million in revenue. The revenue a year earlier was only $30.47 million. That’s a growth rate of 2,241%. Yes you read it correctly. Now let us see what is how their business model is working:
When you check the Groupon website you will see webpage like the one shown below:
The webpage shows deeply discounted offers from different business located in the city where you are living. The figure shows a beauty salon offer that has a 50% discount on women’s haircut. You do nothing if you are not interested. If you like the Groupon deal, you select “buy” before the expiration date and your credit card is charged. If enough people select the deal, you will be sent a link for your rebate coupon at the end of the offer. Once you receive your coupon you can claim it at the specified store, usually within a period of time before it expires as noted on the website. If enough people do not join for that deal, the Groupon is cancelled and no one gets it and in this case you will get a refund for your money. You can see in the left down corner of the figure that the deal is on because more than 15 people has already joined the deal. In case that you have changed your mind you can also cancel an already made order and you will get a full refund. Clever, isn’t it?
Which design pattern you would use to implement the Groupon application? Please give a short explanation why. In particular, show an appropriate class diagram(s) and/or enough code fragments to illustrate your use of the pattern to solve the problem.
【作者:刘伟 http://blog.csdn.net/lovelion】
- 一道关于高朋网(Groupon)的设计模式题(英文版)
- 对Groupon模式的研究
- 关于数据库的一道题??
- 一道关于信号的题
- 关于继承的一道题
- 关于 static 的一道题
- 关于一道题的思考
- 关于C++的一道题
- 关于jvm的一道题
- 一道关于信号的题
- 关于蓝桥杯的一道题
- 关于textarea的一道题
- 一道面试题想到的设计模式(观察者模式)
- A Famous Music Composer(南阳oj25)(一道无聊的英文题)
- groupon
- 一道有趣的面试题 - 设计模式的运用
- 关于设计模式的学习(一)
- 关于不定积分的一道题(和答案不一致)
- Android开发者必须深入学习的10个应用开源项目
- 浑浑噩噩又一年
- 一个读取配置文件的工具类写法 (properties文件和文本文件)
- mac知识收集
- Threads
- 一道关于高朋网(Groupon)的设计模式题(英文版)
- 复制初始化和直接初始化的区别
- 谈Android四大组件之BroardcastReceiver篇
- JSP内置对象---application
- 框架的意义
- UNIX/Linux进程间通信IPC---管道--全总结(实例入门)
- APUE 阅读笔记(chapter 11&12)——线程
- SQL Server 2008 没有可用于 charge_sys_Log.LDF 的编辑器
- wikioi 1512 转向游戏