帮忙看看这题
Sports Results Database
Write a program that acts as an online sports results database for all the results of a single player or team (eg a footballer or team for your favourite sport)
class definition
instance variables
constructors and other methods
arrays of objects
searching method
useful comments, good indentation, good use of variable names
file i/o
objects can be updated with new values
sorting method (not necessarily using index arrays)
For example
• Write a new class ‘result’ to represent player or team result objects. An object consists of (for example) the player or team name, the date of result and score. Your class definition should include an appropriate constructor method. A single entry can be entered by the user typing the details in and the entry can be printed out.
• The program should be able to store an array of result objects. Each entry in the array will be a single object for a result. Add a menu of options including
o input a new entry from a keyboard
o print all the entries so far
o Quit
• Your result database should provide a search method that allows the title of a given result to be looked up in the array. This should be an extra menu option. It should be part of a new “database” class rather than being part of the result class previously defined, ie it should be part of the class that instantiates the array of objects.
Sports Results Database
Write a program that acts as an online sports results database for all the results of a single player or team (eg a footballer or team for your favourite sport)
class definition
instance variables
constructors and other methods
arrays of objects
searching method
useful comments, good indentation, good use of variable names
file i/o
objects can be updated with new values
sorting method (not necessarily using index arrays)
For example
• Write a new class ‘result’ to represent player or team result objects. An object consists of (for example) the player or team name, the date of result and score. Your class definition should include an appropriate constructor method. A single entry can be entered by the user typing the details in and the entry can be printed out.
• The program should be able to store an array of result objects. Each entry in the array will be a single object for a result. Add a menu of options including
o input a new entry from a keyboard
o print all the entries so far
o Quit
• Your result database should provide a search method that allows the title of a given result to be looked up in the array. This should be an extra menu option. It should be part of a new “database” class rather than being part of the result class previously defined, ie it should be part of the class that instantiates the array of objects.
...全文
相关推荐
如何在Intellij中安装LeetCode刷题插件方便Java刷题
五、使用 LeetCode 刷题插件的优势使用 LeetCode 刷题插件可以提高编程效率和刷题体验。
2019年国赛A题B题C题-本科的优秀论文可编辑,代码是可以直接复制
这些资料主要围绕2019年全国数学建模竞赛中的A题、B题和C题展开,涵盖了本科优秀论文及可直接使用的代码。
高校网络公选课刷题工具
高校网络公选课刷题工具是辅助学习软件,含试题库刷题助手、视频课助手等组件。试题库刷题助手可自动刷题、检查答案;视频课助手辅助看课;config.ini存储设置;AnswerFinder查找答案。使用该
LEETCODE 刷题指南
### 刷题顺序按照题目的出现频度进行刷题是一个行之有效的策略。
2017美赛D题原题&&数据
描述中的“2017_ICM_Problem_D&&Data;;2017美赛D题原题题目(英文)&&数据”进一步明确了提供的内容,包括了2017年D题的英文题目以及相关数据。


Java SE
