/* @(#)amort.h	128.1 1/20/93 19:38:50 */
/**********************************************************************\

   (c) Copyright 1991 by Lotus Development Corporation
   All Rights Reserved

   Module:  amort.h

   Description:   This header file suports the sample application
   found in amort.c.  The header includes the text for input prompts,
   short and long menu prompts, output column headings, and sample help
   screens.  There are also #defines that associate a menu position number
   with a name.  These names make the switch statement that processes the
   menu selection easier to follow and maintain.

\***********************************************************************/

/* prompts for amortization table values and output range */

#define  PRIN_RANGE_PROMPT  "Indicate the loan principal: "
#define  INT_RANGE_PROMPT   "Indicate the per period interest rate: "
#define  TERM_RANGE_PROMPT  "Indicate the number of periods: "
#define  OUT_RANGE_PROMPT   "Indicate the output range: "

/* number, order, and contents of menu */

#define  MENU_ITEMS       7
#define  MENU_PRIN        1
#define  MENU_INT         2
#define  MENU_TERM        3
#define  MENU_OUTPUT      4
#define  MENU_RESET       5
#define  MENU_GO          6
#define  MENU_QUIT        7

lmhdl(lmhdl(lmbcs))amort_theMenuArray[] = {
   "Principal","Specify the loan amount",
   "Interest" ,"Specify the per period interest rate",
   "Term"     ,"Specify the loan duration",
   "Output"   ,"Identify the amortization table output location",
   "Reset"    ,"Reset all amortization specifications",
   "Go"       ,"Generate the amortization table",
   "Quit"     ,"Return to READY mode", LNULL
};

/* number and titles of table columns */

#define  TABLE_COLUMNS  7

lmhdl(lmhdl(lmbcs))theTitlesArray[] = {
   "Period",
   "Payment",
   "Pmt Int",
   "Pmt Prin",
   "Cum Int",
   "Cum Prin",
   "Balance",
   LNULL
};

#define MENU_HELP_LINES       11L
#define PRINCIPAL_HELP_LINES   4L
#define INTEREST_HELP_LINES    4L
#define TERM_HELP_LINES        4L
#define OUTPUT_HELP_LINES      4L


lmhdl(lmhdl(lmbcs))theMenuHelp [] = {
   "",
   "This is an example of an application help screen.  Use the amortization",
   "as follows:",
   "",
   "Select PRINCIPAL to indicate which cell contains the amount of the loan.",
   "Select INTEREST to indicate which cell contains the per-period interest rate.",
   "Select TERM to indicate which cell contains the number of payment periods.",
   "Select OUTPUT to indicate where to begin the amortization table.",
   "Select RESET to cancel the settings for principal, interest, and term cells.",
   "Select GO to generate the amortization table in the output range.",
   "Select QUIT to return to READY mode.",
   LNULL
};

lmhdl(lmhdl(lmbcs))thePrincipalHelp [] = {
   "",
   "This is an example of a range prompt specific help screen:",
   "",
   "Select PRINCIPAL to indicate which cell contains the amount of the loan.",
   LNULL
};

lmhdl(lmhdl(lmbcs))theInterestHelp [] = {
   "",
   "This is an example of a range prompt specific help screen:",
   "",
   "Select INTEREST to indicate which cell contains the per-period interest rate.",
   LNULL
};

lmhdl(lmhdl(lmbcs))theTermHelp [] = {
   "",
   "This is an example of a range prompt specific help screen:",
   "",
   "Select TERM to indicate which cell contains the number of payment periods.",
   LNULL
};

lmhdl(lmhdl(lmbcs))theOutputHelp [] = {
   "",
   "This is an example of a range prompt specific help screen:",
   "",
   "Select OUTPUT to indicate where to begin the amortization table.",
   LNULL
};

/* misc. defines */

#define  TITLE_SEPARATOR "-"
#define  IS_ANCHORED     LFALSE
#define  BELL_FREQUENCY  600   
#define  BELL_DURATION   250

