
   =========================================================================
                        M I C R O   F O C U S

                   S E R V E R   E X P R E S S  5.0
   =========================================================================
                              JAVACALC DEMO
                              =============

   TABLE OF CONTENTS
   =================
       DESCRIPTION
       SOURCE FILES
       REQUIREMENTS
       HOW TO COMPILE AND RUN THIS DEMO
       WHAT THIS DEMO DOES


   DESCRIPTION
   ===========

   This demo shows:

   o How to write a simple COBOL Java object

   o How to call both class and instance Object COBOL methods 
     using Java


   SOURCE FILES
   ============

   javacalc.cbl		- Object COBOL class
   CalcClient.java	- Java client
   javacalc.java  	- Java class


   REQUIREMENTS
   ============

   Set up the COBOL and Java environments as described in Chapter 1 of
   your Distributed Computing book.


   HOW TO COMPILE AND RUN THIS DEMO
   ================================

   1. Compile and link the COBOL programs using the following command:
      sh ./build.sh
   
   2. At the command line enter:

      cobjrun CalcClient <rate> <amount>

      where <rate> is an interest rate (for example, 10.0) and <amount>
      is a currency amount to which the interest rate is to be applied.
      <amount> can be repeated.


   WHAT THIS DEMO DOES
   ===================


   The demo first invokes the "setInterestRate" class method in order
   to store the interest rate. Then, to calculate the total accumulated
   starting from each amount over 1, 5, 10 and 20 years given the interest
   rate, it invokes the "calcSimpleInterest" and "calcCompoundInterest"
   methods. These methods return the total amount as a string, which the
   Java client displays.

 
   =========================================================================
   Micro Focus is a registered trademark, and Server Express is a trademark,
   of Micro Focus International Limited. 
   =========================================================================
   Copyright (C) 1996-2000 Micro Focus International Limited. 
   All rights reserved.

