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)
constructors and other methods
arrays of objects
useful comments, good indentation, good use of variable names
objects can be updated with new values
sorting method (not necessarily using index arrays)
• 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
• 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.