Check06E (TS = 60)

Download the jar file typex.jar (the file has been updated on November 8, noon) and save it in the same directory as type.jar. typex.jar should already be part of your CLASSPATH.

Create the program named Check06E that prompts the user by printing

Enter file name: 
The file name should be entered on the same line (see sample run below). You may assume that the user always enters the name of an existing file. You may also assume that the file has the same structure as the file named 2009.html which can be found here. It is an HTML file containing the gold prices for 2009. Your program should determine the highest gold price during the year and the date at which gold reached this highest price (ties are broken by the date earlier in the year). The exact way this output has to be produced can be found in the sample below.

Next, some hints are provided.

Here is a sample run (where the user has entered 2009.html)

Enter file name: 2009.html
In the year 2009, gold reached its highest price of 1,220.20 on 12/02/09

To check whether your code is correct, you can use eCheck. You are advised to use the offline mode first. Once your code is correct (worth 3 marks) and you are happy with your style (worth 2 marks), you can switch to the online mode and submit your solution. For style, you should adhere to the code conventions described in Appendix C of the textbook.