eCheck01E

In order to do this first programming exercise, you first need to install some software on your computer. In particular, you need to install You might also want to install the editor jEdit. Next, you find instructions how to install the above. If you get stuck during the installation, please email the instructor providing details where you got stuck, what type of error message you got, etc.

Downloading the JDK

Below, you find instructions how to download the JDK.

Installing the JDK

Below, you find instructions how to install the JDK for Windows 7.

Adding javac and java to PATH

In order to be able to use the commands javac and java, their directory needs to be added to PATH. This can be done in several ways. Below, you find instructions how this can be done for Windows 7.

Downloading type.jar

The Java archive file (jar) type.jar contains Java code that you will need to do the programming exercises. Below, you find instructions how to download this file.

Adding type.jar to CLASSPATH

To be able to use jar files, they need to be added to CLASSPATH. Below, you find instructions how to add type.jar to CLASSPATH in Windows 7.

Configuring eCheck

In order to do the programming exercises, you first have to configure eCheck. Below, you find instructions how to do this.

Downloading jEdit (optional)

Below, you find instructions how to download the editor jEdit.

Installing jEdit (optional)

Below, you find instructions how to install the editor jEdit for Windows 7.

Adding jedit to PATH (optional)

Below, you find instructions how to add jedit to PATH for Windows 7.

Check01E (TS = 6)

Create the program named Check01E whose output is exactly as shown below.

In the "Black-Scholes formula"
σ is used to denote the volatility.

Download typex.jar

Download the jar file typex.jar and save it in the same directory as type.jar. Also, add typex.jar to your CLASSPATH.

Check and submit your code

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.