/** * * Author: Joanne Louise Carter * Date: 23/11/04 * Module: G6DICP Introduction to Computer Programming * Title: ICP Coursework 2 * SCSiT Username: jxc04m * */ ------------------------------------------------- | v v I RRR TTTTT U U A L | | | | v v I R R T U U A A L |x| | | v v I RRR T U U AAAAA L |x| | | V V I R R T U U A A L |x| | | V I R R T UU A A LLLL |x| | | T H E R M O M E T E R (x) | ------------------------------------------------- The Read Me File ================ How to run this program: ------------------------ If you have the JDK (Java Developement Kit) installed on your computer then you can run the program by accessing the folder in which the program is installed through the Command Prompt. Then type java at the prompt to run (you do not need the .class extension as the program automatically adds this) e.g: java cw2d 42.5. If you do not have the JDK then you can download the the JRE (Jave Runtime Environment) from Sun and run the program by typing jre at the prompt. What the Program does: ---------------------- This program (in version C or later) takes a temperature value which has been entered by the user and displays it on a thermometer. If the temperature entered is greater than 100 then the temperature will not display, it will say "Too Hot" and the same with "Too Cold (for temperatures less than -20). If you enter anything other than a single number then the program will display an error message which describes exactly what you did wrong. With part E you can change the temperature unit between Fahrenheight, Celcius and Kelvin indefinately. List of files included: ----------------------- cw2/readme.txt (this file) cw2/taskA/cw2a.class cw2/taskA/cw2a.java cw2/taskB/cw2b.class cw2/taskB/cw2b.java cw2/taskC/cw2c.class cw2/taskC/cw2c.java cw2/taskC/TempWindow$WindowListen.class cw2/taskC/TempWindow.class cw2/taskD/cw2d.class cw2/taskD/cw2d.java cw2/taskD/TempWindow$WindowListen.class cw2/taskD/TempWindow.class cw2/taskE/cw2e.class cw2/taskE/cw2e.java cw2/taskE/TempWindow$MouseListen.class cw2/taskE/TempWindow$WindowListen.class cw2/taskE/TempWindow.class cw2/taskE1/cw2e1.class cw2/taskE1/cw2e1.java cw2/taskE1/TempWindow$MouseListen.class cw2/taskE1/TempWindow$WindowListen.class cw2/taskE1/TempWindow.class /* TaskE1 is an attempt to simplify the scale line code; however, it does not reduce the * amount of code lines. */ Limitations: ------------ This program should run on any platform as Java is a platform independant programming language. It has been tested on the Windows XP operating system, and Unix (via Exceed). It should also work with any recent version of the JDK (since 1.4.2), including the most recent (1.5.0) - as it does not use deprecated code. The first part of the program cw2a will not run if a temperature value is not entered on the command line. There are no such limitations on the other programs. NB: The minimum limit that I imposed in Part E is -273.15 (absolute zero). NB: The Unicode degree symbol does not display correctly in the DOS command line; or in the command line or titlebar of the Window in Exceed. NB: If the binaries are compiled in JDK version 1.5.0 then they will not work in version 1.4.2 without being recompiled. These binaries have been re-compiled by version 1.4.2 before submission to ensure they work correctly for the markers (as I had this problem with FizBuz) - this is not true vice versa: there is forwards compatibility, just not backwards.