Calculator II ReadMe Copyright © 1991-93, Joe Cicinelli. This program is FREEware and may not be sold or distributed without the permission of the author. This application was developed with THINKC 5.0.4 so portions of the product are copyrighted by the Semantec Corporation. The author, Joe Cicinelli, makes no warranties, either express or implied, regarding the fitness of the Calculator II application for any particular purpose. Use it at your own risk. The author claims no liability for data loss or other problems caused directly or indirectly by the Calculator II application. Purpose Calculator II is a pleasant looking color multi-function calculator that runs as an application under system 6.x or System 7. The calculator was written as an application to be run under MultiFinder or System 7 alongside other applications. It improves on AppleÕs original calculator by adding trigonometric functions, functions for base 10 and natrual logorithms and their inverses, hex-to-decimal and decimal-to-hex conversion, a memory function for storing values across uses of the program, and all of these functions can be invoked by using the F-Keys on the Apple Extended keyboard (F5 - F15). The calculator also allows users to correct trailing digits of values entered on the display of the calculator through the use of a backspace key. Balloon help and general information about the program is available under either the Help menu under System 6.x or the Balloon Help menu under System 7. This software is being distributed as FREEware so give it a try and let me know what you think! This version adds the Tilde key (`) as a shortcut to hitting the change sign (±) key on the calculator. The parethesis key Ô(Ô was also replaced by a percent key (%) for calculating percent increase/decrease. This application has been explicitly tested under Systems 6.0.7 and 7.0 (with and without System 7 Tuneup 1.1.1). Testing was performed using a IIcx,Classic, and PowerBook 170. Previous versions have run successfully on LCs and SE/30s. Calculator Capabilities ¥ Trigonometric functions (sin, cosine, tangent, arcsin, arccos, & arctangent). ¥ Base 10 and Natural logarithms and their inverse functions. ¥ Square and Square root functions. ¥ Conversion from HEX numbers to decimals and visa versa. NOTE: HEX values must be entered in uppercase only and cannot exceed the value 0xFFFFFFFF. ¥ Power and nth root functions. ¥ Ability to correct trailing digits of values being entered on the calculatorÕs display. ¥ Support for complete operation of calculator functions via the Apple Extended Keyboard (F5 - F15 required). ¥ Ability to cut, copy and paste to and from the clipboard. ¥ Balloon help is available for menus, About Dialog box, calculator keys, and the icon in the Finder. ¥ General information about the program (CalCulator II ReadMe document) is also available under the Help menu under Systems 6.0.x or 7. ¥ Calculator remembers last used position on screen. ¥ Shift key can be used with function and Clear keys to execute 2nd functions (e.g. arcsin instead of sin). When used with the Clear key only the last entry is cleared and not the entire equation. Likewise, the shift key can also be used with the mouse to access the 2nd Functions. ¥ Calculator II retains the contents of its memory across uses of the program. ¥ Calculator is AppleEvent aware of the core suite of events. ¥ Through the use of the percent key, it is now possible to calculate percent increase or decrease. For example, it is now possible to enter 5 - 3.2% = 4.84! The percent key can also be used with an number to divide by 100 as in 5% = .05. Keyboard Map for Function Keys The function keys that appear on the calculator are mapped to the Function keys F5 - F15 on the Apple Extended Keyboard. Here is the correspondence map: F5=sin F6=cosine F7=tangent F8=2nd Function F9=Value of PI F10=Natural Log F11=Base 10 Log F12=Backspace Key F13=Power function F14=Square root function F15=Square function Shift + F5=arc sin Shift + F6=arc cosine Shift + F7=arc tangent Shift + F9=Factorial function Shift + F10=Constant e raised to a power. Shift + F11=Constant 10 reaised to a power. Shift + F13=Nth Root function Shift + F14=Cubed Root function Shift + F15=expression 1 divided by x Other keys mapped to functions on the calculator: Esc, c, Clear=Clear function *, x = Multiplication X = Memory Enter R = Memory Recall M = Memory Add ? = About Dialog box Delete = Backspace function Enter = Equal function ` = Reverse sign of number on display % = Percent increase or decrease. Shift + Clear or Esc = Clear Last Entry Future Plans for Calculator II ¥ Make parentheses functional. ¥ Force Calculator to solve equations using the standard Hierarchy of Operators. ¥ Option to display commas every 3 digits in results window. ¥ Switch to display Statistical, Business, Scientific, or Programmer functions. ¥ Option to display negative numbers in red color or parentheses instead of with leading negative sign. ¥ Ticker tape available for display and output to disk. Correspondence I can be reached by U.S mail at: 4477 West Taro Drive Glendale, AZ 85308 (602) 581-3865 I can also be reached at: cicinell@saifr00.cfsat.honeywell.com Bibliography ¥ Andrews, M. & Rhodes, N. (1992). ProgrammerÕs Guide to MPW, Volume 2. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Andrews, M. (1991). ProgrammerÕs Guide to MPW, Volume 1. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Apple Computer, Inc. (1985-91). Inside Macintosh, vol. I-VI. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Apple Computer, Inc. (1988). Inside Macintosh X-Ref. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Apple Computer, Inc. (1990). ResEdit Reference. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Chernicoff, S. (1985). Macintosh Revealed, Programming With the Toolbox, vol 2. Hasbrouck Heights, NJ: Hayden Book Company. ¥ Chernicoff, S. (1985). Macintosh Revealed, Unlocking the Toolbox, vol 1. Hasbrouck Heights, NJ: Hayden Book Company. ¥ Chernicoff, S. (1989). Macintosh Revealed, Mastering the Toolbox, vol 3. Hasbrouck Heights, NJ: Hayden Book Company. ¥ Chernicoff, S. (1990). Macintosh Revealed, Expanding the Toolbox, vol 4. Hasbrouck Heights, NJ: Hayden Book Company. ¥ Ellis, M. A., & Stroustrup, B. (1990). The Annotated C++ Reference Manual. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Huxham, F. A., Bernard, D., & Takatsuka, J. (1989). Using the Macintosh Toolbox With C. San Francisco, CA: SYBEX Inc. ¥ Kernighan, B. W., & Ritchie, D. M. (1988). The C Programming Language. Englewood Cliffs, NJ: Prentice Hall. ¥ Knaster, S. (1988). Macintosh Programming Secrets. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Knaster, S., & Rollin, K. (1992). Macintosh Programming Secrets (2nd Ed). Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Little, G., & Swihart, T. (1991). Programming for System 7. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Mark, D. (1990). Macintosh C Programming Primer, vol 2. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Mark, D., & Reed, C. (1989). Macintosh Programming Primer. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ MŸldner, T., & Steele, P. W. (1988). C as a Second Language. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Stroustrup, B. (1987). The C++ Programming Language. Reading, Mass: Addison-Wesley Publishing Company, Inc. ¥ Surovell, D. A., Hall, F. M., & Othmer, K. (1992). Programming Quickdrawª: Includes Color Quickdrawª and 32-Bit Quickdrawª. Reading, Mass: Addison-Wesley Publishing Company, Inc.