资源简介
包含所有SSD3答案!包含SSD3的选择题,程序题!

代码片段和文件信息
import java.io.*;
/**
* objects of this class store stock information for a company.
* The following information is stored.
*
* - the Dow Jones symbol for the company a
String
.
* - the name of the company a
String
.
* - the highest price reached during the course of the day
* a double
* - the lowest price reached during the course of the day
* a double
* - the last trading price recorded when the market closed on the day
* a double
*
*
* @author iCarnegie
* @version 1.0.0
*/
public class Stock {
/** Dow Jones symbol for the company */
private String symbol;
/** the name of the company */
private String name;
/** the highest price reached during the course of the day */
private double highestPrice;
/** the lowest price reached during the course of the day */
private double lowestPrice;
/** the last trading price recorded when the market closed on the day */
private double lastPrice;
/**
* Constructs a Stock
object.
*
* @param initialSymbol the symbol of the stock.
* @param initialName the name of the company.
* @param initialHighestPrice the highest price of the stock.
* @param initialLowestPrice the lowest price of the stock.
* @param initialLastPrice the close price of the stock.
*/
public Stock (
String initialSymbol
String initialName
double initialHighestPrice
double initialLowestPrice
double initialLastPrice) {
this.symbol = initialSymbol;
this.name = initialName;
this.highestPrice = initialHighestPrice;
this.lowestPrice = initialLowestPrice;
this.lastPrice = initialLastPrice;
}
/**
* Obtains the symbol of this stock.
*
* @return the symbol of this stock.
*/
public String getSymbol() {
return this.symbol;
}
/**
* Obtains the name of this stock.
*
* @return the name of this stock.
*/
public String getName() {
return this.name;
}
/**
* Obtains the highest price of the stock.
*
* @return the highest price of this stock.
*/
public double getHighestPrice() {
return this.highestPrice;
}
/**
* Obtains the lowest price of the stock.
*
* @return the lowest price of this stock.
*/
public double getLowestPrice() {
return this.lowestPrice;
}
/**
* Obtains the close price of the stock.
*
* @return the close price of this stock.
*/
public double getLastPrice() {
return this.lastPrice;
}
/**
* Returns a {@link String} with the stock info in a xml format
*
* @return the newly created {@link String} with the stock info
*/
public String getxml() {
/* Line separator */
String NEW_LINE = System.getProperty(“line.separator“);
return ““
+ NEW_LINE
+ “ “+ getSymbol() + “
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-01-21 18:00 SSD3-Answers\
文件 53285 2016-01-21 17:53 SSD3-Answers\SSD3-Multiple-Choice.CHM
目录 0 2010-10-08 17:12 SSD3-Answers\SSD3答案\
目录 0 2016-01-21 18:00 SSD3-Answers\SSD3答案\exam1\
文件 91629 2008-01-06 22:03 SSD3-Answers\SSD3答案\exam1\EmployeeInformationSystem.jpg
文件 12800 2016-01-21 18:00 SSD3-Answers\SSD3答案\exam1\Thumbs.db
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exam1\stock\
文件 3384 2008-01-05 13:56 SSD3-Answers\SSD3答案\exam1\stock\Stock.java
文件 1878 2008-01-05 14:37 SSD3-Answers\SSD3答案\exam1\stock\StockApplication.java
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exam1\weather方法1\
文件 2175 2008-01-05 15:05 SSD3-Answers\SSD3答案\exam1\weather方法1\Weather.java
文件 2566 2008-01-06 10:12 SSD3-Answers\SSD3答案\exam1\weather方法1\WeatherApplication.java
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exam1\weather方法2:数组解决\
文件 2681 2008-01-06 10:17 SSD3-Answers\SSD3答案\exam1\weather方法2:数组解决\WeatherApplication.java
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exam2\
文件 543 2008-01-04 22:26 SSD3-Answers\SSD3答案\exam2\AudioFile.java
文件 905 2008-01-04 22:58 SSD3-Answers\SSD3答案\exam2\MediaDataba
文件 55 2008-01-04 22:17 SSD3-Answers\SSD3答案\exam2\MediaFile.java
文件 4107 2008-01-04 22:10 SSD3-Answers\SSD3答案\exam2\student-files.zip
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exercise1\
文件 934 2006-01-10 16:51 SSD3-Answers\SSD3答案\exercise1\Product.class
文件 1135 2006-01-10 16:51 SSD3-Answers\SSD3答案\exercise1\ShoppingCart.class
文件 2652 2007-12-31 22:03 SSD3-Answers\SSD3答案\exercise1\ShoppingCartApplication.class
文件 2531 2007-12-31 22:02 SSD3-Answers\SSD3答案\exercise1\ShoppingCartApplication.java
目录 0 2016-01-21 16:46 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\
文件 126561 2007-12-20 19:56 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\Exercise1.pdf
文件 934 2006-01-10 16:51 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\Product.class
文件 1135 2006-01-10 16:51 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\ShoppingCart.class
文件 2702 2007-12-23 04:04 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\ShoppingCartApplication.class
文件 3435 2007-12-20 19:55 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\exe-shopping-cart.jar
文件 6522 2007-12-20 19:56 SSD3-Answers\SSD3答案\exercise1\要求与所需文件\student-files.zip
............此处省略107个文件信息
- 上一篇:最全的LaTeX手册
- 下一篇:电气控制与plc应用技术课后答案(全)
相关资源
- 使用选择性重传协议实现UDP可靠通信
- 路由选择算法源程序(最短路径算法
- VHDL带分频功能的函数发生器实现六种
- 选择题自动考试系统
- 拼图游戏(可自由选择难度)
- 工程师经验分享:DCDC模块电源选择参
- 如何选择环路带宽平衡抖动、相位噪
- 压敏电阻怎么选择_压敏电阻作用是什
- 解秘重复数据删除——飞康帮您
- HP Kayak高性能PC选择Adaptec RAID解决方案
- eclipse安卓工程相册、相机选择图片功
- FEATURE SELECTION FOR KNOWLEDGE DISCOVERY AND
- 基于英特尔:registered: 至强:registered:
- 百度万年历 日期选择控件 带农历节日
- 移动端日期时间选择控件
- 基于Nested Logit模型的出行路线方式选
- 带式输送机托辊间距的选择
- 猕猴桃近红外光谱MLR建模中的波长选
- 基于动态分类器集成选择和GM(21)
- 并联型有源电力滤波器输出电感选择
- Cocos2d-x 3.x 头像选择器功能扩展Image
- 经验分享:如何通过wifi标准选择
- 论文研究-基于fuzzyTOPSIS的资源服务优
- 仿京东收货地址
- 模式识别之特征选择
- 人工噪声和天线选择
- MHC依赖性配偶选择研究综述
- 矿井电网选择性漏电保护实用电路的
- 基于可拓学优度评价法的虚拟企业合
- 双核铜配合物选择性抑制T细胞蛋白酪
评论
共有 条评论