- 浏览: 191575 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (124)
- java (25)
- 项目学习 (7)
- Web JSP (14)
- English study (1)
- windows (17)
- Thinking in Java (2)
- SSD4 VB (1)
- VB.NET (9)
- CSS (11)
- JQuery (4)
- Struts2 (0)
- spring (1)
- Hibernate (1)
- Dojo (0)
- Prototype (0)
- JSON (1)
- Ajax (1)
- my life my computer (1)
- html (1)
- JavaCC (0)
- c# (1)
- C/C++ (1)
- SQL (0)
- PS (1)
- Linux (21)
- Flex (1)
- mysql (1)
最新评论
-
wshy33:
按照这个“去掉/jre/lib/ext/目录下的jaxen.j ...
xpath的使用遇到的问题 -
白色蜻蜓:
什么是ssh
Linux ---SSH密钥问题解决 -
lucane:
今天请教R大一个问题,然后用他提到的hsdis跑代码看,但是我 ...
JVM 反汇编动态运行代码 -
igotti:
原来-XX:+PrintAssembly还需要安装插件
JVM 反汇编动态运行代码 -
RednaxelaFX:
嗯Good,继续有新的同好开始鼓捣这些东西真好 ^_^我在编译 ...
JVM 反汇编动态运行代码
Background
This assignment asks you to model a coffee store application.
Description
Gourmet Coffee is a store that sells coffee from countries around the globe. It also sells coffee brewing machines and other accessories for coffee consumption. The Gourmet Coffee System maintains a product catalog, processes orders, and tracks the store's sales.
The catalog maintains the following information about the store's products:
The following tables show some of the products sold by Gourmet Coffee.
Figure 1 Coffee
Figure 2 Coffee brewers
Figure 3 Coffee accessories
The Gourmet Coffee System processes orders. An order contains a list of products, their quantities, and the total cost. The following is an example of an order:
Figure 4 Order
In the Gourmet Coffee System, the user can:
Files
Following is a sample executable of the Gourmet Coffee System.
gourmet-coffee-sample-executable.jar — Download this file now. It is a sample executable.
Tasks
These steps will guide you for completing this assignment:
First, run the sample executable by issuing the following command at the command prompt:
C:\>java -jar gourmet-coffee-sample-executable.jar
Then, follow the technique described in page 1.2.5 Modeling Classes to model the Gourmet Coffee System.
Identify the following:
The classes
The association relationships (include direction, multiplicity, and association attribute)
The specialization/generalization relationships
The attributes of each class
The methods of each class
Your class diagram should include:
The class of the gourmet coffee application
The accessor methods
The mutator methods if are needed
For the collections:
The methods to add and access elements
The methods to remove elements if are needed
The methods that compute other values not included in the attributes.
Use Sun's coding conventions when naming classes, methods, and attributes.
Use Eclipse, Violet, PowerPoint, or another tool of your choosing to draw a UML class diagram.
Save the UML class diagram in a SVG, GIF, or JPG format in a file named uml-gou-cof.
下面是提交的UML图片..
This assignment asks you to model a coffee store application.
Description
Gourmet Coffee is a store that sells coffee from countries around the globe. It also sells coffee brewing machines and other accessories for coffee consumption. The Gourmet Coffee System maintains a product catalog, processes orders, and tracks the store's sales.
The catalog maintains the following information about the store's products:
- Code
- Description
- Price
- Country of origin
- Type of roast
- Flavor
- Aroma
- Acidity
- Body
[--]Coffee
- Code
- Description
- Price
- Model of the brewer
- Type of the water supply: Pour-over or Automatic
- Capacity: number of cups
[---]Coffee brewer
- Code
- Description
- Price
[---]Coffee accessory
The following tables show some of the products sold by Gourmet Coffee.
Figure 1 Coffee
Figure 2 Coffee brewers
Figure 3 Coffee accessories
The Gourmet Coffee System processes orders. An order contains a list of products, their quantities, and the total cost. The following is an example of an order:
Figure 4 Order
In the Gourmet Coffee System, the user can:
- Display the catalog: lists the code and description of each product
- Display a product
- Display the current order: lists quantity, code, and price of each product in the current order, and the total of the order.
- Add a product to the current order—if the specified product is already part of the order, this command will modify the quantity of that product
- Remove a product from the current order
- Register the sale of the current order—this command adds the order to the store's sales and empties the current order
- Display the sales: lists all the orders that have been sold
- Run the sample executable that is provided to learn more about the Gourmet Coffee System.
Files
Following is a sample executable of the Gourmet Coffee System.
gourmet-coffee-sample-executable.jar — Download this file now. It is a sample executable.
Tasks
These steps will guide you for completing this assignment:
First, run the sample executable by issuing the following command at the command prompt:
C:\>java -jar gourmet-coffee-sample-executable.jar
Then, follow the technique described in page 1.2.5 Modeling Classes to model the Gourmet Coffee System.
Identify the following:
The classes
The association relationships (include direction, multiplicity, and association attribute)
The specialization/generalization relationships
The attributes of each class
The methods of each class
Your class diagram should include:
The class of the gourmet coffee application
The accessor methods
The mutator methods if are needed
For the collections:
The methods to add and access elements
The methods to remove elements if are needed
The methods that compute other values not included in the attributes.
Use Sun's coding conventions when naming classes, methods, and attributes.
Use Eclipse, Violet, PowerPoint, or another tool of your choosing to draw a UML class diagram.
Save the UML class diagram in a SVG, GIF, or JPG format in a file named uml-gou-cof.
下面是提交的UML图片..
发表评论
-
JVM 反汇编动态运行代码
2011-05-11 21:15 3603Java HotSpot(TM) Server VM warn ... -
Android rpg 游戏开发
2011-04-23 15:36 2432Android 游戏开发 记录点滴 rpg 游戏的地图 ... -
xpath的使用遇到的问题
2011-01-06 20:40 2927org.dom4j.InvalidXPathException ... -
Boolean的构造函数,你懂的
2010-11-27 20:52 1176学java不看源码是上不了一个等级的! ========== ... -
maven project 转化为eclipse project
2010-10-10 16:42 1462There is actually a very easy s ... -
UDAS
2010-09-24 12:31 1061UDAS 的全称:uniform data access s ... -
Java备忘
2010-05-02 09:12 1293/////////////////////////////// ... -
Java 虚拟机
2010-05-01 12:50 870//////////////////////////// ... -
cmm解释器--java实现
2010-04-18 13:02 1468目录: cmm编译器-cmm 语言词法分析-java实现 ... -
cmm编译器-cmm 语言LL1解释器构造-java实现
2010-04-18 12:57 2200附件是整个实验的文档和代码(由三人Hyvi,Heger,AJ负 ... -
cmm编译器-cmm 语言LL1语法分析-java实现
2010-04-18 12:11 2481cmm编译器-cmm 语言LL1语法分析-java实现 附件 ... -
cmm编译器-cmm 语言语法分析-javacc实现
2010-04-18 12:01 5363Cmm的文法: //程序开始 programàstmt-s ... -
cmm编译器-cmm 语言词法分析-java实现
2010-04-18 11:51 2768词法设计理念 1. 注释处理: 在处理注释的问题 ... -
Linux 下 Java环境的详细信息
2010-03-14 01:08 1241先把代码贴上: 1 import java.uti ... -
神奇的“按钮”
2010-03-11 23:12 824早期的反模式:神奇的按钮 神奇的Servlet ... -
RUBY
2009-06-10 14:23 952# rail:良好的惯例高于配 ... -
switch 与default 与break
2009-02-19 21:36 1078public class B { public s ... -
2008期末Collections&arrays总结
2009-01-16 00:48 846全部是静态方法 public static int binar ... -
2008年期末考试复习总结
2009-01-15 17:13 773类成员访问修饰符与继承的关系 私有的(private)类成员 ... -
SingleTon
2008-11-07 13:34 843大二期--中考试Java程序设计最后一题如下 Write do ...
相关推荐
SSD5 Recommended Exercise 2 数据结构SSD5 Recommended Exercise 2 数据结构SSD5 Recommended Exercise 2 数据结构SSD5 Recommended Exercise 2 数据结构SSD5 Recommended Exercise 2 数据结构SSD5 Recommended ...
SSD8 exercise2
SSD7 exercise2 答案 SSD7 exercise2 答案 SSD7 exercise2 答案
卡耐基教程SSD3 exercise2的答案 卡耐基教程SSD3 exercise2的答案
SSD3 exercise2 答案 保证正确 SSD3 exercise2 答案 保证正确 SSD3 exercise2 答案 保证正确 SSD3 exercise2 答案 保证正确SSD3 exercise2 答案 保证正确
ssd 4 exercise 2 还是上传上去
ssd3 exercise2 满分答案 ssd3 exercise2 满分答案
SSD8的exercise2的答案,老师给的高分答案!
ssd5 seqcc.icarnegie 数据结构 exercise2 100分
这是卡耐基课程中SSD8中exercise2的答案
SSD3 答案 源代码 Exercise 2
ssd3 exercise2 完全正确的答案
ssd7 exercise2 完整答案
Exercise2 for Computer Organization.doc
ssd6 Exercise2 ssd6 Exercise2 ssd6 Exercise2
ssd8 exercise2 ssd8 exercise2 xxxcc ssd8 exercise2 ssd8 exercise2 xxxcc ssd8 exercise2 ssd8 exercise2 xxxcc ssd8 exercise2 ssd8 exercise2 xxxcc ssd8 exercise2 ssd8 exercise2 xxxcc
icarnegie SSD7 Exercise2答案
数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2数据结构ssd5 exercise2...