资源简介
卡耐基 SSD3答案(全 eaxm+qiuz+excerise)

代码片段和文件信息
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() + “
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2674 2007-12-24 21:38 SSD3答案\quiz9\Employee.java
文件 88041 2007-12-20 20:42 SSD3答案\quiz9\要求与所需文件\Practical Quiz 9.pdf
文件 8831 2007-12-20 20:41 SSD3答案\quiz9\要求与所需文件\student-files.zip
文件 108 2008-01-04 13:35 SSD3答案\quiz8\DVD.java
文件 773 2008-01-04 13:35 SSD3答案\quiz8\DVDMovie.java
文件 529 2008-01-04 13:01 SSD3答案\quiz8\Movie.java
文件 77 2008-01-04 13:12 SSD3答案\quiz8\VHS.java
文件 588 2008-01-04 13:35 SSD3答案\quiz8\VHSMovie.java
文件 177549 2007-12-20 20:37 SSD3答案\quiz8\要求与所需文件\Practical Quiz 8.pdf
文件 5695 2007-12-20 20:35 SSD3答案\quiz8\要求与所需文件\student-files.zip
文件 2512 2008-01-03 16:39 SSD3答案\quiz7\Student.java
文件 5701 2008-01-03 17:18 SSD3答案\quiz7\StudentArrayList.java
文件 9785 2008-01-03 16:40 SSD3答案\quiz7\TestStudentArrayList.java
文件 91163 2007-12-20 20:19 SSD3答案\quiz7\要求与所需文件\Practical Quiz 7.pdf
文件 8078 2007-12-20 20:20 SSD3答案\quiz7\要求与所需文件\student-files.zip
文件 1934 2008-01-03 15:29 SSD3答案\quiz6\Employee.java
文件 5570 2008-01-03 16:32 SSD3答案\quiz6\EmployeeArray.java
文件 9231 2008-01-03 15:30 SSD3答案\quiz6\TestEmployeeArray.java
文件 89155 2007-12-20 20:12 SSD3答案\quiz6\要求与所需文件\Practical Quiz 6.pdf
文件 7710 2007-12-20 20:24 SSD3答案\quiz6\要求与所需文件\student-files.zip
文件 2910 2008-01-01 23:30 SSD3答案\quiz5\TestAthleteScores.java
文件 71247 2007-12-20 20:10 SSD3答案\quiz5\要求与所需文件\Practical Quiz 5.pdf
文件 1658 2007-12-20 20:10 SSD3答案\quiz5\要求与所需文件\student-files.zip
文件 95978 2008-01-06 16:34 SSD3答案\quiz4\uml-customer-system.jpg
文件 74207 2007-12-20 20:01 SSD3答案\quiz4\要求与所需文件\Practical Quiz 4.pdf
文件 39162 2008-01-06 13:19 SSD3答案\quiz3\AnimalsClassDiagram.jpg
文件 115019 2008-01-06 12:59 SSD3答案\quiz3\ComputerClassDiagram.jpg
文件 76945 2007-12-20 19:59 SSD3答案\quiz3\要求与所需文件\Practical Quiz 3.pdf
文件 4450 2007-12-31 21:05 SSD3答案\quiz2\DNASequence.java
文件 865 2007-12-20 19:33 SSD3答案\quiz2\要求与所需文件\DebuggingReport.txt
............此处省略109个文件信息
- 上一篇:nvm-setup.zip
- 下一篇:QPSK调制的FPGA实现源程序
相关资源
- 数据库系统基础教程答案第三版机械
- 《数字信号处理第三版》课后习题答
- 数据结构年终考题范围和答案 耿国华
- 大学物理答案 同济大学 高等教育出版
- 信息论与编码(仇佩亮编著 高等教育
- 《复变函数》习题答案(第四版)
- 中科院 编译原理 习题及解答
- 西安电子科技大学 并行计算 霍红卫
- 浙江工业大学2005-2006学年单片机习题
- 信息系统分析与设计试卷及答案
- SSD4 exercise8答案
- 杨素行第三版模电答案
- 复变函数参考答案(西安交通大学版
- 复旦大学出版社 李贤平 《概率论基础
- 数值分析答案(第五版)李庆扬
- 数据结构殷人昆版的课后答案
- 郁道银 工程光学 习题答案
- 操作系统教程课后答案华中科技大学
- 用友ERP考试系统练习题库及答案
- 《原子物理学》高教 杨福家 完整版课
- 真正!!!概率论与数理统计浙江大
- 计算机操作系统课后_汤小丹_第四版
- 计算机操作系统(第四版)汤小丹课
- 南京大学考研845真题答案-2018
- Convex Optimization 习题答案
- 数据结构考研试题历届试卷(附答案
- 计算机网络自顶向下方法答案(第六
- 数学分析教材,复旦,陈传璋、金福
- 操作系统教程课后习题答案
- 编译原理龙书答案
评论
共有 条评论