Program: ACCT 1.0.0 Programmer: MacDonald R. Phillips Email: phillipsm.ggd@gao.gov mrp100@erols.com Date: May 1997 Platform: HP48G(X) The directory ACCT (short for accounting) contains two subdirectories: SUMS and XTABS. SUMS is for adding up groups of numbers and XTABS is for cross tabulations. Both have options for displaying and printing results. Load ACCT into your HP48G(X) in binary mode. The ACCT directory and subdirectories will be automatically created. On entering the ACCT directory, you have access to the SUMS and XTABS subdirectories. Also, if you have a HP thermal printer for the calculator you may enter your name as a string and press NAME, which occurs right after the XTABS subdirectory. Then, when you print out your results, a date and time stamp will be printed and so will your name. 1: SUMS Subdirectory (Totals, Subtotals, and Grand Totals) On entering the SUMS subdirectory, press GO-> to set up the custom menu. There are six program keys. A. NEWSigma clears the summation variables and prompts you for input. In the stack area it begins by asking you to Enter Number 1 and will display a running total and grand total. Press the +/- key to enter negative numbers. After entering number 1, you will be prompted to Enter Number 2, etc., etc. Enter . (the decimal point) to delete the last number entered. Press ENTER without entering anything to terminate number entry. On terminating number entry, the current total and grand total will be displayed on the screen and you will have three options: (1) To CONT adding numbers to the current total. (2) To start entering a new group of numbers by pressing NGRP. You will be taken back to the input screen, prompted to Enter Number 1, the total field will be zero, but the grand total field will display the grand total of all numbers entered so far. (3) Pressing DONE terminates entry of numbers, places the grand total on the stack and takes you back to the main menu. B. CONT allows you to continue adding new groups of numbers to the current grand total. All past groups, if any, are maintained. This is useful if you have to interrupt entering a long list of numbers. CONT, however, does not allow you to add numbers to the last group of numbers entered; it begins by creating a new group. C. PRTSigma prints out the numbers you have entered with a date and time stamp at the beginning. How PRTSigma prints out the numbers depends on whether total or subtotal mode is chosen. If subtotal mode is chosen the running subtotal will be printed after every group of numbers entered. If total mode is chosen, the total for each group will be printed. In either case, the grand total is printed at the end. D. Pressing T/S? opens a choose box from which the total or subtotal mode is chosen. E. DSP% will display the numbers in each group along with their percent of the grand total. The subtotal or total of each group along with the appropriate percent will also be displayed depending on which mode is chosen. E. PRT% will print out what DSP% displays with a date and time stamp at the beginning. 2: XTABS Subdirectory (Cross Tabs) On entering the XTABS subdirectory press GO-> to set up the custom menu. There are six program keys. A. NEW clears SigmaDAT and prompts you to enter the first row of the data by displayig Enter Row 1 in the stack area. Each row of data is entered as a vector. The vector delimitors are in the command line. Simply enter the numbers separated by a space and press enter. You will now be prompted to Enter Row 2, etc., etc. Entry is terminiated by pressing ENTER with an empty vector. There is no means to delete the last row entered except by terminating entry, recalling SigmaDAT, editing the matrix, and restoring it to SigmaDAT. B. CONT allows you to continue adding rows to the existing SigmaDAT after entery has been terminated. You will be prompted on what row to begin entering. C. DISP will display first the column totals and total of the column total and then the row totals and total of row totals. Press CONT to display the rest of the totals. Press LS (left shift) DISP to display the column and row totals as percents of the grand total. D. SIZE will display the size of the current SigmaDAT, in case you've forgotten how many columns and rows have been entered. E. PDATA will print out the data labeled by column and row with a date and time stamp at the beginning. F. PXTAB will print out the cross tabs with a date and time stamp at the beginning. Pressing LS (left shift) PXTAB will print out the cross tabs as percents of the grand total. If you have any questions, comments, find any bugs, whatever, please send me an email.