D3802B38 NAVEEN

download D3802B38 NAVEEN

of 32

Transcript of D3802B38 NAVEEN

  • 8/7/2019 D3802B38 NAVEEN

    1/32

    TERM PAPER OF

    Modern Programming

    Tools & Techniques IIISubmitted by: NAVEEN Submitted to:

    Mr.Pankaj sir.

    Registration id: 10804425

    Section D3802

    Roll number: 38

    Program code: CAP 407

    DECLARATION

  • 8/7/2019 D3802B38 NAVEEN

    2/32

    I here by declare that the Major Project work entitled

    Scientific calculator submitted for BCA-MCA(4th

    term) is my original work carried out by me under the

    guidance of MR PANKAJ SHARMA my subject teacher.

    The matter embodied in this report has not submitted

    anywhere else for the award of any other degree/diploma.

    Place:- Lovely Professional University.

    CERTIFICATE

  • 8/7/2019 D3802B38 NAVEEN

    3/32

    This is to certify that NAVEEN SHARMA, University

    Regd. No 10804425 has worked under my supervision to

    prepare her project report entitled Scientific

    calculator .The work embodied in this report isoriginal and was conducted by me. And all the project work

    is done under my supervision.Mr.

    Lect. Of Modern Programming Tools & Techniques

    III(cap-407)

    Department:-Lovely School Of Engineering

    ACKNOWLEDGMENT

  • 8/7/2019 D3802B38 NAVEEN

    4/32

    Before I get into thick of the things I would like to add a

    few heartfelt words for the people who were part of this

    project in numerous ways, people who gave unending

    support right from the stage the project idea was

    conceived. There is a long list of people who have directly

    or indirectly made this project possible. I acknowledge my

    sincere debt to all of them.

    My primarily thanks go to my project guide

    MR PANKAJ SHARMA for his personal involvement and his

    immense and eloquent guidance, which has been

    indispensable in bringing about a successful fulfillment of

    the project.

    Introduction of Scientific calculator

  • 8/7/2019 D3802B38 NAVEEN

    5/32

    A scientific calculator is a type of electronic calculator, usually but not always handheld,designed to calculate problems in science (especially physics), engineering, and mathematics.They have almost completely replaced slide rules in almost all traditional applications, and arewidely used in both education and professional settings.

    In certain contexts such as higher education, scientific calculators have been superseded by

    graphing calculators, which offer a superset of scientific calculator functionality along with theability to graph input data and write and store programs for the device. There is also someoverlap with the financial calculator market.

    Overview

    http://en.wikipedia.org/wiki/Electronicshttp://en.wikipedia.org/wiki/Calculatorhttp://en.wikipedia.org/wiki/Calculatorhttp://en.wikipedia.org/wiki/Physicshttp://en.wikipedia.org/wiki/Engineeringhttp://en.wikipedia.org/wiki/Engineeringhttp://en.wikipedia.org/wiki/Mathematicshttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/File:Sine-ratio.gifhttp://en.wikipedia.org/wiki/File:FX-77.JPGhttp://en.wikipedia.org/wiki/Calculatorhttp://en.wikipedia.org/wiki/Physicshttp://en.wikipedia.org/wiki/Engineeringhttp://en.wikipedia.org/wiki/Mathematicshttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Electronics
  • 8/7/2019 D3802B38 NAVEEN

    6/32

    In the past, mechanical clerical aids such as abaci, comptometers, Napier's bones, books ofmathematical tables, slide rules, or mechanical adding machines were used for numeric work.This semi-manual process of calculation was tedious and error-prone.

    Modern calculators are electrically powered (usually by battery and/orsolar cell) and vary from

    cheap, give-away, credit-card sized models to sturdy adding machine-like models with built-inprinters. They first became popular in the late 1960s as decreasing size and cost of electronicsmade possible devices for calculations, avoiding the use of scarce and expensive computerresources. By the 1980s, calculator prices had reduced to a point where a basic calculator wasaffordable to most. By the 1990s they had become common in math classes in schools, with theidea that students could be freed from basic calculations and focus on the concepts.

    Computer operating systems as far back as early Unix have included interactive calculator programs such as dc and hoc, and calculator functions are included in almost all PDA-typedevices (save a few dedicated address book and dictionary devices).

    Most calculators contain the following buttons: 1,2,3,4,5,6,7,8,9,0,+,-,, (/),.,=,%, and (+/-).Some even contain 00 and 000 buttons to make larger calculations easier to compute.

    HistoryThis article needs reorganization to meet Wikipedia's quality standards. There is

    good information here, but it is poorly organized; editors are encouraged to be bold

    and make changes to the overall structure to improve this article

    Casio produced the world's first graphic calculator, the fx-7000G, in 1985. After Casio, HewlettPackard followed shortly in the form of the HP-28C. This was followed by the HP-28S (1988),

    HP-48SX (1990), HP-48S (1991), and many other models. Recent models like the current HP50g (2006), feature a computer algebra system (CAS) capable of manipulating symbolicexpressions and analytic solving. The HP-28 and -48 range were primarily meant for theprofessional science/engineering markets; the HP-38/39/40 were sold in the high school/collegeeducational market; while the HP-49 series cater to both educational and professional customersof all levels. The HP series of graphing calculators is best known for its Reverse Polish notationinterface, although the HP-49 introduced a standard expression entry interface as well.

    http://en.wikipedia.org/wiki/Abacushttp://en.wikipedia.org/wiki/Comptometerhttp://en.wikipedia.org/wiki/Napier's_boneshttp://en.wikipedia.org/wiki/Napier's_boneshttp://en.wikipedia.org/wiki/Mathematical_tablehttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Adding_machinehttp://en.wikipedia.org/wiki/Solar_cellhttp://en.wikipedia.org/wiki/Ancient_UNIX_Systemshttp://en.wikipedia.org/wiki/Ancient_UNIX_Systemshttp://en.wikipedia.org/wiki/Dc_(Unix)http://en.wikipedia.org/wiki/Hoc_(programming_language)http://en.wikipedia.org/wiki/Hoc_(programming_language)http://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Wikipedia:Layouthttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Stylehttp://en.wikipedia.org/wiki/Wikipedia:Be_boldhttp://en.wikipedia.org/w/index.php?title=Graphing_calculator&action=edithttp://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Casio_fx-7000Ghttp://en.wikipedia.org/wiki/Computer_algebra_systemhttp://en.wikipedia.org/wiki/Reverse_Polish_notationhttp://en.wikipedia.org/wiki/File:Casio_fx-7000G_Box&Manual.JPGhttp://en.wikipedia.org/wiki/Abacushttp://en.wikipedia.org/wiki/Comptometerhttp://en.wikipedia.org/wiki/Napier's_boneshttp://en.wikipedia.org/wiki/Mathematical_tablehttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Adding_machinehttp://en.wikipedia.org/wiki/Solar_cellhttp://en.wikipedia.org/wiki/Ancient_UNIX_Systemshttp://en.wikipedia.org/wiki/Dc_(Unix)http://en.wikipedia.org/wiki/Hoc_(programming_language)http://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Wikipedia:Layouthttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Stylehttp://en.wikipedia.org/wiki/Wikipedia:Be_boldhttp://en.wikipedia.org/w/index.php?title=Graphing_calculator&action=edithttp://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Casio_fx-7000Ghttp://en.wikipedia.org/wiki/Computer_algebra_systemhttp://en.wikipedia.org/wiki/Reverse_Polish_notation
  • 8/7/2019 D3802B38 NAVEEN

    7/32

    Texas Instruments has produced graphing calculators since 1990, the oldest of which was the TI-81. Some of the newer calculators are similar, with the addition of more memory, fasterprocessors, and USB connection such as the TI-82, TI-83 series, and TI-84 series. Other models,designed to be appropriate for students 1014 years of age, are the TI-80 and TI-73. Other TIgraphing calculators have been designed to be appropriate for calculus, namely the TI-85, TI-86,

    TI-89 series, and TI-92 series (TI-92, TI-92 Plus, and Voyage 200). TI offers a CAS on the TI-89, TI-Nspire CAS and TI-92 series models with the TI-92 series featuring a QWERTY keypad.TI calculators are targeted specifically to the educational market, but are also widely available tothe general public.

    Graphing calculators are also manufactured by Sharp but they do not have the onlinecommunities, user-websites and collections of programs like the other brands.

    Origin: the abacus

    The first calculators were abathia, and were often constructed as a wooden frame with beadssliding on wires. Abathias were in use centuries before the adoption of the written Arabicnumerals system and are still used by some merchants, fishermen and clerks in Africa, Asia, andelsewhere.

    The first scientific calculator that included all of the basic features above was the programmableHewlett-PackardHP-9100A,[1]released in 1968, though the Wang LOCI-2 and the Mathatronics

    http://en.wikipedia.org/wiki/Arabic_numeralshttp://en.wikipedia.org/wiki/Arabic_numeralshttp://en.wikipedia.org/wiki/Arabic_numeralshttp://en.wikipedia.org/wiki/Hewlett-Packardhttp://en.wikipedia.org/wiki/Hewlett-Packard_9100Ahttp://en.wikipedia.org/wiki/Hewlett-Packard_9100Ahttp://en.wikipedia.org/wiki/Scientific_calculator#cite_note-0http://en.wikipedia.org/wiki/Scientific_calculator#cite_note-0http://en.wikipedia.org/wiki/Wang_Laboratorieshttp://en.wikipedia.org/wiki/File:Abacus_6.pnghttp://en.wikipedia.org/wiki/File:Abacus_6.pnghttp://en.wikipedia.org/wiki/File:TI-biju.jpghttp://en.wikipedia.org/wiki/Arabic_numeralshttp://en.wikipedia.org/wiki/Arabic_numeralshttp://en.wikipedia.org/wiki/Hewlett-Packardhttp://en.wikipedia.org/wiki/Hewlett-Packard_9100Ahttp://en.wikipedia.org/wiki/Scientific_calculator#cite_note-0http://en.wikipedia.org/wiki/Wang_Laboratories
  • 8/7/2019 D3802B38 NAVEEN

    8/32

    Mathatron had some features later identified with scientific calculator designs. The HP-9100series was built entirely from discrete transistorlogic with no integrated circuits, and was one ofthe first uses of the CORDIC algorithm for trigonometric computation in a personal computingdevice, as well as the first calculator based onreverse Polish notation entry. HP became closelyidentified with RPN calculators from then on, and even today some of their high-end calculators

    (particularly the long-lived HP-12C financial calculator and the HP-48 series of graphingcalculators) still offer RPN as their default input mode due to having garnered a very large cultfollowing.

    Texas Instruments, after the introduction of several units with logarithm/exponent capability,came out with the first modern handheld scientific calculator in 1974 in the form of the SR-50.[2]

    TI continues to be a major player in the calculator market, with their long-runningTI-30 seriesbeing one of the most widely used scientific calculators in classrooms.

    Casio andSharp have also been major players, with Casio's FX series (beginning with the CasioFX-1 in 1972) being a very common brand, used particularly in schools. Casio is also the #3[citationneeded]

    player in the graphing calculator market, and was the the first company to produce one(Casio fx-7000G).

    Functions

    Modern scientific calculators generally have many more features than a standard four or five-function calculator, and the feature set differs between manufacturers and models; however, thedefining features of a scientific calculator include:

    Scientific notation for calculating large numbers floating point arithmetic logarithmic functions, using both base 10 and base e trigonometry functions (some including hyperbolic trigonometry) exponents and roots beyond the square root quick access to constants such aspi and e

    In addition, high-end scientific calculators will include:

    hexadecimal,binary, and octal calculations, including basic Booleanmath complex numbers fractions statistics andprobabilitycalculations programmability see Programmable calculator equation solving calculus

    While most scientific models have traditionally used a single-line display similar to traditionalpocket calculators, many of them have at the very least more digits (10 to 12), sometimes withextra digits for the floating point exponent. A few have multi-line displays, with some recent

    http://en.wikipedia.org/wiki/Transistorhttp://en.wikipedia.org/wiki/Integrated_circuithttp://en.wikipedia.org/wiki/CORDIChttp://en.wikipedia.org/wiki/Reverse_Polish_notationhttp://en.wikipedia.org/wiki/Reverse_Polish_notationhttp://en.wikipedia.org/wiki/HP-12Chttp://en.wikipedia.org/wiki/HP-48http://en.wikipedia.org/wiki/Texas_Instrumentshttp://en.wikipedia.org/wiki/Scientific_calculator#cite_note-1http://en.wikipedia.org/wiki/TI-30http://en.wikipedia.org/wiki/TI-30http://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Casio_fx-7000Ghttp://en.wikipedia.org/wiki/Scientific_notationhttp://en.wikipedia.org/wiki/Floating_pointhttp://en.wikipedia.org/wiki/Logarithmhttp://en.wikipedia.org/wiki/E_(mathematical_constant)http://en.wikipedia.org/wiki/Trigonometryhttp://en.wikipedia.org/wiki/Hyperbolic_trigonometryhttp://en.wikipedia.org/wiki/Exponenthttp://en.wikipedia.org/wiki/Roothttp://en.wikipedia.org/wiki/Square_roothttp://en.wikipedia.org/wiki/Pihttp://en.wikipedia.org/wiki/E_(mathematical_constant)http://en.wikipedia.org/wiki/Hexadecimalhttp://en.wikipedia.org/wiki/Binary_numeral_systemhttp://en.wikipedia.org/wiki/Binary_numeral_systemhttp://en.wikipedia.org/wiki/Octalhttp://en.wikipedia.org/wiki/Booleanhttp://en.wikipedia.org/wiki/Booleanhttp://en.wikipedia.org/wiki/Complex_numberhttp://en.wikipedia.org/wiki/Fractionhttp://en.wikipedia.org/wiki/Statisticshttp://en.wikipedia.org/wiki/Probabilityhttp://en.wikipedia.org/wiki/Probabilityhttp://en.wikipedia.org/wiki/Programmable_calculatorhttp://en.wikipedia.org/wiki/Calculushttp://en.wikipedia.org/wiki/Transistorhttp://en.wikipedia.org/wiki/Integrated_circuithttp://en.wikipedia.org/wiki/CORDIChttp://en.wikipedia.org/wiki/Reverse_Polish_notationhttp://en.wikipedia.org/wiki/HP-12Chttp://en.wikipedia.org/wiki/HP-48http://en.wikipedia.org/wiki/Texas_Instrumentshttp://en.wikipedia.org/wiki/Scientific_calculator#cite_note-1http://en.wikipedia.org/wiki/TI-30http://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Wikipedia:Citation_neededhttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Casio_fx-7000Ghttp://en.wikipedia.org/wiki/Scientific_notationhttp://en.wikipedia.org/wiki/Floating_pointhttp://en.wikipedia.org/wiki/Logarithmhttp://en.wikipedia.org/wiki/E_(mathematical_constant)http://en.wikipedia.org/wiki/Trigonometryhttp://en.wikipedia.org/wiki/Hyperbolic_trigonometryhttp://en.wikipedia.org/wiki/Exponenthttp://en.wikipedia.org/wiki/Roothttp://en.wikipedia.org/wiki/Square_roothttp://en.wikipedia.org/wiki/Pihttp://en.wikipedia.org/wiki/E_(mathematical_constant)http://en.wikipedia.org/wiki/Hexadecimalhttp://en.wikipedia.org/wiki/Binary_numeral_systemhttp://en.wikipedia.org/wiki/Octalhttp://en.wikipedia.org/wiki/Booleanhttp://en.wikipedia.org/wiki/Complex_numberhttp://en.wikipedia.org/wiki/Fractionhttp://en.wikipedia.org/wiki/Statisticshttp://en.wikipedia.org/wiki/Probabilityhttp://en.wikipedia.org/wiki/Programmable_calculatorhttp://en.wikipedia.org/wiki/Calculus
  • 8/7/2019 D3802B38 NAVEEN

    9/32

    models from Texas Instruments, Casio, Sharp, and Canon using dot matrix displays similar tothose found ongraphing calculators.

    Uses

    Scientific calculators are used widely in any situation where quick access to certain mathematicalfunctions is needed, especially those such as trigonometric functions that were once traditionallylooked up in tables; they are also used in situations requiring back-of-the-envelope calculationsof very large numbers, as in some aspects ofastronomy,physics, and chemistry.

    They are very often required for math classes from the junior high school level through college,and are generally either permitted or required on many standardized tests covering math andscience subjects; as a result, many are sold into educational markets to cover this demand, andsome high-end models include features making it easier to translate the problem on a textbookpage into calculator input, from allowing explicit operator precedence using parentheses toproviding a method for the user to enter an entire problem in as it is written on the page using

    simple formatting tools.

    Formula calculator

    A formula calculator is a software calculator that can perform a calculation in two steps:

    1. Enter the calculation by typing it in from the keyboard.

    2. Press a single button or key to see the final result

    http://en.wikipedia.org/wiki/Texas_Instrumentshttp://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Canonhttp://en.wikipedia.org/wiki/Canonhttp://en.wikipedia.org/wiki/Dot_matrixhttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Astronomyhttp://en.wikipedia.org/wiki/Physicshttp://en.wikipedia.org/wiki/Physicshttp://en.wikipedia.org/wiki/Chemistryhttp://en.wikipedia.org/wiki/Chemistryhttp://en.wikipedia.org/wiki/Standardized_testhttp://en.wikipedia.org/wiki/Operator_precedencehttp://en.wikipedia.org/wiki/File:FC_Arithmetic.JPGhttp://en.wikipedia.org/wiki/Texas_Instrumentshttp://en.wikipedia.org/wiki/Casiohttp://en.wikipedia.org/wiki/Sharp_Corporationhttp://en.wikipedia.org/wiki/Canonhttp://en.wikipedia.org/wiki/Dot_matrixhttp://en.wikipedia.org/wiki/Graphing_calculatorhttp://en.wikipedia.org/wiki/Astronomyhttp://en.wikipedia.org/wiki/Physicshttp://en.wikipedia.org/wiki/Chemistryhttp://en.wikipedia.org/wiki/Standardized_testhttp://en.wikipedia.org/wiki/Operator_precedence
  • 8/7/2019 D3802B38 NAVEEN

    10/32

    This is unlike button-operated calculators, such as the Windows Calculator or the Mac oscalculator, which require the user to perform one step for each operation, by pressing buttons tocalculate all the intermediate values, before the final result is shown.

    In this context, a formula is also known as an expression, and so formula calculators may be

    called expression calculators. Also in this context, calculation is known as evaluation, and sothey may be called formula evaluators, rather than calculators.

    How they work

    Formulas As they are commonly written use infix notation forbinary operators, such as addition,multiplication, division and subtraction. This notation also uses:

    Parentheses to enclose parts of a formula that must be calculated first.

    In the absence of parentheses, operator precedence, so that higher precedence operators, such asmultiplication, must be applied before lower precedence operators, such as addition. Forexample, in 2 + 3*4, the multiplication, 3*4, is done first.

    Among operators with the same precedence, associativity, so that the left-most operator mustbe applied first. For example, in 2 - 3 + 4, the subtraction, 2 - 3, is done first.

    Also, formulas may contain:

    Non-commutative operators that must be applied to numbers in the correct order, such as

    subtraction and division.

    The same symbol used for more than one purpose, such as - for negative numbers andsubtraction.

    Once a formula is entered, a formula calculator follows the above rules to produce the final resultby automatically:

    Analysing the formula and breaking it down into its constituent parts, such as operators,numbers and parentheses.

    Finding both operandsof each binary operator.

    Working out the values of these operands.

    Applying the operator to these values, in the correct order so as to allow for non-commutativeoperators.

    Evaluating the parts of a formula in parentheses first.

    http://en.wikipedia.org/wiki/Calculatorshttp://en.wikipedia.org/wiki/Windows_Calculatorhttp://en.wikipedia.org/wiki/Mac_os_calculatorhttp://en.wikipedia.org/wiki/Mac_os_calculatorhttp://en.wikipedia.org/wiki/Mac_os_calculatorhttp://en.wikipedia.org/wiki/Expressionhttp://en.wikipedia.org/wiki/Infix_notationhttp://en.wikipedia.org/wiki/Binary_operatorshttp://en.wikipedia.org/wiki/Binary_operatorshttp://en.wikipedia.org/wiki/Parentheseshttp://en.wikipedia.org/wiki/Operator_precedencehttp://en.wikipedia.org/wiki/Associativityhttp://en.wikipedia.org/wiki/Non-commutativehttp://en.wikipedia.org/wiki/Non-commutativehttp://en.wikipedia.org/wiki/Operandshttp://en.wikipedia.org/wiki/Operandshttp://en.wikipedia.org/wiki/Calculatorshttp://en.wikipedia.org/wiki/Windows_Calculatorhttp://en.wikipedia.org/wiki/Mac_os_calculatorhttp://en.wikipedia.org/wiki/Mac_os_calculatorhttp://en.wikipedia.org/wiki/Expressionhttp://en.wikipedia.org/wiki/Infix_notationhttp://en.wikipedia.org/wiki/Binary_operatorshttp://en.wikipedia.org/wiki/Parentheseshttp://en.wikipedia.org/wiki/Operator_precedencehttp://en.wikipedia.org/wiki/Associativityhttp://en.wikipedia.org/wiki/Non-commutativehttp://en.wikipedia.org/wiki/Operands
  • 8/7/2019 D3802B38 NAVEEN

    11/32

  • 8/7/2019 D3802B38 NAVEEN

    12/32

    should be entered as

    (2 + 3)/(4 - 5)

    Also, the symbol is often used for division, as in

    2 3

    This symbol is not available on most computer keyboards, so this division operation is enteredusing the forward slash, as above.

    Exponentiation

    Exponentiation, or raising to a power, is often represented using a superscript. For example:

    2.452

    means 2.45squared.

    With the limitations of a computer keyboard, in some software packages, such as MicrosoftExcel, this is entered using the caret, ^:

    2.45^2

    but two asterisks are also used:

    2.45**2

    Exponentiation and functions

    When using functions, the superscript is sometimes placed immediately after the function name.For example, it is common to write the trigonometric version ofPythagoras Theorem (List oftrigonometric identities) as:

    sin2(x) + cos2(x) = 1

    In this identity,

    sin2(x)

    means the square of sin(x), and is the same as:

    sin(x)2

    So, for x = 3.25, it could be entered into a formula calculator that uses the caret forexponentiation as:

    http://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Pythagoras%E2%80%99_Theoremhttp://en.wikipedia.org/wiki/List_of_trigonometric_identitieshttp://en.wikipedia.org/wiki/List_of_trigonometric_identitieshttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Pythagoras%E2%80%99_Theoremhttp://en.wikipedia.org/wiki/List_of_trigonometric_identitieshttp://en.wikipedia.org/wiki/List_of_trigonometric_identities
  • 8/7/2019 D3802B38 NAVEEN

    13/32

    sin(3.25)^2

    Square roots

    Square roots are often specified using the symbol, but with the limitations of a keyboard this is

    can be entered by using exponentiation. For example, the square root of 2:2

    could be entered as:

    2^(1/2)

    The parentheses specify that the division should be done first.

    Other roots

    All roots can be specified in this way. For example, the cube root of 2 can be entered as:

    2^(1/3)

    Herons formula example

    An example that illustrates these features isHerons formula.

    One version of the formula, for a triangle with sides of length a, b and c, is equivalent to, usingsymbols that are available on a keyboard:

    1/2*(a^2*c^2 - (a^2 + c^2 - b^2)/2)^0.5

    For a = 2.5, b = 3.6 and c = 1.9, it could be entered into a formula calculator as:

    1/2*(2.5^2*1.9^2 - (2.5^2 + 1.9^2 - 3.6^2)/2)^0.5

    Types of calculator

    The formula calculator concept can be applied to all types of calculator, including arithmetic,scientific, statistics, financial and conversion calculators.

    The calculation can be typed or pasted into an edit box of:

    A software package that runs on a computer, for example as a dialog box.

    An on-line formula calculator hosted on a web site.

    It can also be entered on the command line of a programming language.

    http://en.wikipedia.org/wiki/Heron%E2%80%99s_formulahttp://en.wikipedia.org/wiki/Heron%E2%80%99s_formulahttp://en.wikipedia.org/wiki/Heron%E2%80%99s_formulahttp://en.wikipedia.org/wiki/Heron%E2%80%99s_formula
  • 8/7/2019 D3802B38 NAVEEN

    14/32

    Related software packages

    Although they are not calculators in themselves, because they have a much broader feature set,many software tools have a formula-calculation capability, in that a formula can be typed in andevaluated. These include:

    Spreadsheets, where a formula can be entered to calculate a cells content.

    Databases, where a formula can be used to define the value of a calculated field in a record.

    Declarative and imperative tools

    Button-operated calculators are imperative, because the user must provide details of how thecalculation has to be performed.

    On the other hand, formula calculators are more declarative because the typed-in formulaspecifies what to do, and the user does not have to provide any details of the step-by-step orderin which the calculation has to be performed.

    Declarative solutions are easier to understand than imperative solutions, and so there has been along-term trend from imperative to declarative methods. Formula calculators are part of thistrend.

    Many software tools for the general user, such as spreadsheets, are declarative. Formulacalculators are examples of such tools.

    Hybrid calculators

    There are hybrid calculators that combine typed-in formula and button-operated calculation. Forexample:

    Calculations can be entered entirely from the keyboard, or operations can be applied to typed-innumbers or formulas using buttons, in the same calculator.

    Formulas can be constructed using buttons, rather than being entered from the keyboard.

    Formula copies of button-operated calculations can be created, saved and re-loaded for

    application to different numbers.

    http://en.wikipedia.org/wiki/Spreadsheetshttp://en.wikipedia.org/wiki/Databaseshttp://en.wikipedia.org/wiki/Imperativehttp://en.wikipedia.org/wiki/Imperativehttp://en.wikipedia.org/wiki/Declarativehttp://en.wikipedia.org/wiki/Spreadsheetshttp://en.wikipedia.org/wiki/Spreadsheetshttp://en.wikipedia.org/wiki/Databaseshttp://en.wikipedia.org/wiki/Imperativehttp://en.wikipedia.org/wiki/Declarativehttp://en.wikipedia.org/wiki/Spreadsheets
  • 8/7/2019 D3802B38 NAVEEN

    15/32

    Concerns on usage

    In education

    In most countries, students use calculators for schoolwork. There was some initial resistance tothe idea out of fear thatbasic arithmetic skills would suffer. There remains disagreement aboutthe importance of the ability to perform calculations "in the head", with some curricularestricting calculator use until a certain level of proficiency has been obtained, while othersconcentrate more on teaching estimationtechniques and problem-solving. Research suggests thatinadequate guidance in the use of calculating tools can restrict the kind of mathematical thinkingthat students engage in.] Others have argued that calculator use can even cause core mathematicalskills to atrophy, or that such use can prevent understanding of advanced algebraic concepts.

    There are other concerns - for example, that a pupil could use the calculator in the wrong fashionbut believe the answer because that was the result given. Teachers try to combat this byencouraging the student to make an estimate of the result manually and ensuring it roughly

    agrees with the calculated result. Also, it is possible for a child to type in 1 1 and obtain thecorrect answer '1' without realizing the principle involved. In this sense, the calculator becomes acrutch rather than a learning tool, and it can slow down students in exam conditions as theycheck even the most trivial result on a calculator.

    Other

    Scientific calculator displays of fractions and decimal equivalents

    Errors are not restricted to school pupils. Any user could carelessly rely on the calculator's outputwithout double-checking the magnitude of the result i.e., where the decimal point ispositioned. This problem was all but nonexistent in the era ofslide rules and pencil-and-paper

    calculations, when the task of establishing the magnitudes of results had to be done by the user.In addition, algorithmic flaws and rounding techniques can sometimes lead to minor precisionerrors.

    Some fractions such as 23 are awkward to display on a calculator display as they are usuallyrounded to 0.66666667. Also, some fractions such as 17 which is 0.14285714285714 (to fourteensignificant figures) can be difficult to recognize in decimal form; as a result, many scientificcalculators are able to work in vulgar fractions and/ormixed numbers.

    http://en.wikipedia.org/wiki/Studenthttp://en.wikipedia.org/wiki/Elementary_arithmetichttp://en.wikipedia.org/wiki/Estimationhttp://en.wikipedia.org/wiki/Estimationhttp://en.wikipedia.org/wiki/Calculator#cite_note-0http://en.wikipedia.org/wiki/Crutchhttp://en.wikipedia.org/wiki/Orders_of_magnitudehttp://en.wikipedia.org/wiki/Decimal_separatorhttp://en.wikipedia.org/wiki/Decimal_separatorhttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Significant_figureshttp://en.wikipedia.org/wiki/Vulgar_fractionhttp://en.wikipedia.org/wiki/Mixed_numberhttp://en.wikipedia.org/wiki/File:CalculatorFractions-5550x.jpghttp://en.wikipedia.org/wiki/File:CalculatorFractions-5550x.jpghttp://en.wikipedia.org/wiki/Studenthttp://en.wikipedia.org/wiki/Elementary_arithmetichttp://en.wikipedia.org/wiki/Estimationhttp://en.wikipedia.org/wiki/Calculator#cite_note-0http://en.wikipedia.org/wiki/Crutchhttp://en.wikipedia.org/wiki/Orders_of_magnitudehttp://en.wikipedia.org/wiki/Decimal_separatorhttp://en.wikipedia.org/wiki/Slide_rulehttp://en.wikipedia.org/wiki/Significant_figureshttp://en.wikipedia.org/wiki/Vulgar_fractionhttp://en.wikipedia.org/wiki/Mixed_number
  • 8/7/2019 D3802B38 NAVEEN

    16/32

    Calculators and calculation applications of computers

    Personal computers andpersonal digital assistants can perform general calculations in a varietyof ways:

    Most computer operating systems, at least those that support some kind ofmultitasking,include calculator programs, both text mode (such as the Unixbc (1) language) andgraphical mode (Mac OS Calculator, Microsoft Calculator,KCalc, Grapher,ATCalc).

    Most, though not all, imitate the interface of a physical calculator. Some shell programsand interpreted programming languages also provide interactive calculation functions.

    For more complex calculations requiring large amounts of organized data, spreadsheet programs such as Excel orOpenOffice.org Calc provide calculation and sometimesreporting functions.

    Computer algebra programs such as Mathematica, and others can handle advancedcalculations.

    Client-side scripting can be used for calculations, e.g. by entering

    "javascript:alert(1337*7331)" in a web browser's address bar (as opposed to"http://website name"). Such calculations can be embedded in a separate Javascript orHTML file as well.

    Online calculators such as thecalculator feature of the Google search enginecan performcalculations server-side.

    Calculating vs. computing

    The fundamental difference between calculators and computers is that computers can beprogrammed to perform different tasks while calculators are pre-designed with specific functionsbuilt in, for example addition, multiplication, logarithms, etc. While computers may be used tohandle numbers, they can also manipulate words, images or sounds and other tasks they havebeen programmed to handle. However, the distinction between the two is quite blurred; somecalculators have built-in programming functions, ranging from simple formula entry to fullprogramming languages such as RPL orTI-BASIC. Graphing calculators in particular can, alongwith PDAs, be viewed as direct descendants of the 1980s pocket computers, essentiallycalculators with full keyboards and programming capability.

    The market for calculators is extremely price-sensitive, to an even greater extent than the

    personal computer market; typically the user desires the least expensive model having a specificfeature set, but does not care much about speed (since speed is constrained by how fast the usercan press the buttons). Thus designers of calculators strive to minimize the number of logicelements on the chip, not the number of clock cycles needed to do a computation.

    For instance, instead of a hardware multiplier, a calculator might implement floating pointmathematics with code in ROM, and compute trigonometric functions with the CORDICalgorithm because CORDIC does not require hardware floating-point. Bit serial logic designs are

    http://en.wikipedia.org/wiki/Personal_computerhttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Computer_multitaskinghttp://en.wikipedia.org/wiki/Unixhttp://en.wikipedia.org/wiki/Bc_(Unix)http://en.wikipedia.org/wiki/Calculator_(Mac_OS_X)http://en.wikipedia.org/wiki/Microsoft_Calculatorhttp://en.wikipedia.org/wiki/Microsoft_Calculatorhttp://en.wikipedia.org/wiki/KCalchttp://en.wikipedia.org/wiki/Grapherhttp://en.wikipedia.org/wiki/Grapherhttp://en.wikipedia.org/w/index.php?title=ATCalc&action=edit&redlink=1http://en.wikipedia.org/wiki/Shell_(computing)http://en.wikipedia.org/wiki/Spreadsheethttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/OpenOffice.org_Calchttp://en.wikipedia.org/wiki/OpenOffice.org_Calchttp://en.wikipedia.org/wiki/OpenOffice.org_Calchttp://en.wikipedia.org/wiki/Computer_algebrahttp://en.wikipedia.org/wiki/Mathematicahttp://en.wikipedia.org/wiki/Comparison_of_computer_algebra_systemshttp://en.wikipedia.org/wiki/Client-side_scriptinghttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Javascripthttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/Google_search#Special_featureshttp://en.wikipedia.org/wiki/Google_search#Special_featureshttp://en.wikipedia.org/wiki/Google_search#Special_featureshttp://en.wikipedia.org/wiki/Server-sidehttp://en.wikipedia.org/wiki/RPL_programming_languagehttp://en.wikipedia.org/wiki/TI-BASIChttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Pocket_computerhttp://en.wikipedia.org/wiki/Pocket_computerhttp://en.wikipedia.org/wiki/Floating_pointhttp://en.wikipedia.org/wiki/Read-only_memoryhttp://en.wikipedia.org/wiki/CORDIChttp://en.wikipedia.org/wiki/Bit_serialhttp://en.wikipedia.org/wiki/Personal_computerhttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Computer_multitaskinghttp://en.wikipedia.org/wiki/Unixhttp://en.wikipedia.org/wiki/Bc_(Unix)http://en.wikipedia.org/wiki/Calculator_(Mac_OS_X)http://en.wikipedia.org/wiki/Microsoft_Calculatorhttp://en.wikipedia.org/wiki/KCalchttp://en.wikipedia.org/wiki/Grapherhttp://en.wikipedia.org/w/index.php?title=ATCalc&action=edit&redlink=1http://en.wikipedia.org/wiki/Shell_(computing)http://en.wikipedia.org/wiki/Spreadsheethttp://en.wikipedia.org/wiki/Microsoft_Excelhttp://en.wikipedia.org/wiki/OpenOffice.org_Calchttp://en.wikipedia.org/wiki/Computer_algebrahttp://en.wikipedia.org/wiki/Mathematicahttp://en.wikipedia.org/wiki/Comparison_of_computer_algebra_systemshttp://en.wikipedia.org/wiki/Client-side_scriptinghttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Javascripthttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/Google_search#Special_featureshttp://en.wikipedia.org/wiki/Server-sidehttp://en.wikipedia.org/wiki/RPL_programming_languagehttp://en.wikipedia.org/wiki/TI-BASIChttp://en.wikipedia.org/wiki/Personal_digital_assistanthttp://en.wikipedia.org/wiki/Pocket_computerhttp://en.wikipedia.org/wiki/Floating_pointhttp://en.wikipedia.org/wiki/Read-only_memoryhttp://en.wikipedia.org/wiki/CORDIChttp://en.wikipedia.org/wiki/Bit_serial
  • 8/7/2019 D3802B38 NAVEEN

    17/32

    more common in calculators whereasbit parallel designs dominate general-purpose computers,because a bit serial design minimizes thelanguages chip complexity, but takes many more clockcycles. (Again, the line blurs with high-end calculators, which use processor chips associatedwith computer and embedded systems design, particularly the Z80, MC68000, and ARMarchitectures, as well as some custom designs specifically made for the calculator market.)

    References:-

    1.Modern Programming Tools & Techniques III

    2. www.google.com

    3. Other references books

    Source CodeOptionStrictOffOptionExplicitOnImports VB = Microsoft.VisualBasicFriendClass Form1

    Inherits System.Windows.Forms.FormDim mark AsObjectDim hiolin AsBooleanDim first AsSingle'UPGRADE_NOTE: second was upgraded to second_Renamed. Click for more:

    'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="A9E4979A-37FA-4718-9994-97DD76ED70A7"'

    Dim second_Renamed AsSingleDim operation AsObjectDim joean AsStringDim answer AsSingleDim mem AsStringDim no AsObjectDim count1 AsShortDim ans, no1 AsObjectDim operand1 AsDoubleFunction Factorial(ByRef NUM AsDouble) AsDouble

    OnErrorResumeNextIf NUM = 1 Then

    Factorial = NUMElse

    Factorial = NUM * Factorial(NUM - 1)EndIf

    EndFunction

    PrivateSub Command1_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command1.Click

    OnErrorGoTo hellDim a AsString

    http://en.wikipedia.org/wiki/Bit_parallelhttp://en.wikipedia.org/wiki/Languagehttp://en.wikipedia.org/wiki/Languagehttp://en.wikipedia.org/wiki/Z80http://en.wikipedia.org/wiki/MC68000http://en.wikipedia.org/wiki/ARM_architecturehttp://en.wikipedia.org/wiki/Software_prototyping#Referenceshttp://en.wikipedia.org/wiki/Bit_parallelhttp://en.wikipedia.org/wiki/Languagehttp://en.wikipedia.org/wiki/Z80http://en.wikipedia.org/wiki/MC68000http://en.wikipedia.org/wiki/ARM_architecturehttp://en.wikipedia.org/wiki/Software_prototyping#References
  • 8/7/2019 D3802B38 NAVEEN

    18/32

    Text1.Text = CStr(Val(a) * CDbl(Text1.Text) / 100)ExitSub

    hell:MsgBox("Math Error", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command10_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command10.Click

    Text1.Text = Text1.Text & "3"EndSub

    PrivateSub Command10_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand10.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)

    Command10.BackColor =System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command11_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command11.Click

    Text1.Text = Text1.Text & "0"EndSub

    PrivateSub Command11_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand11.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command11.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command12_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command12.Click

    Text1.Text = Text1.Text & "00"EndSub

    PrivateSub Command12_MouseMove(ByVal eventSender As System.Object,

    ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand12.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command12.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

  • 8/7/2019 D3802B38 NAVEEN

    19/32

    PrivateSub Command13_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command13.Click

    If InStr(Text1.Text, ".") ThenExitSub

    ElseText1.Text = Text1.Text & "."

    EndIf

    EndSub

    PrivateSub Command13_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand13.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)

    Command13.BackColor =System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command14_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command14.Click

    first = Val(Text1.Text)Text1.Text = ""'UPGRADE_WARNING: Couldn't resolve default property of object

    operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    operation = "+"EndSub

    PrivateSub Command14_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand14.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command14.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command15_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command15.Click

    Text1.Text = ""Text1.Focus()

    EndSub

    PrivateSub Command15_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand15.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000

  • 8/7/2019 D3802B38 NAVEEN

    20/32

    Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \&H10000

    Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command15.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command16_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command16.Click

    Dim s AsObjectDim c AsShort'UPGRADE_WARNING: Couldn't resolve default property of object s.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    s = Text1.Textc = Len(s)If c = 0 Then

    Text1.Text = ""Else

    c = c - 1'UPGRADE_WARNING: Couldn't resolve default property ofobject s. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    Text1.Text = VB.Left(s, c)EndIf

    EndSub

    PrivateSub Command16_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand16.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command16.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command17_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command17.Click

    first = Val(Text1.Text)Text1.Text = ""'UPGRADE_WARNING: Couldn't resolve default property of object

    operation. Click for more: 'ms-

    help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    operation = "/"EndSub

    PrivateSub Command17_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand17.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000

  • 8/7/2019 D3802B38 NAVEEN

    21/32

    Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \&H10000

    Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command17.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command18_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command18.Click

    first = Val(Text1.Text)Text1.Text = ""'UPGRADE_WARNING: Couldn't resolve default property of object

    operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    operation = "*"EndSub

    PrivateSub Command18_MouseMove(ByVal eventSender As System.Object,

    ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand18.MouseMoveDim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command18.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command19_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command19.Click

    first = Val(Text1.Text)Text1.Text = ""'UPGRADE_WARNING: Couldn't resolve default property of object

    operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    operation = "-"EndSub

    PrivateSub Command19_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand19.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command19.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command2_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command2.Click

    Text1.Text = Text1.Text & "7"

  • 8/7/2019 D3802B38 NAVEEN

    22/32

    EndSub

    PrivateSub Command2_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command2.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command2.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command20_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command20.Click

    OnErrorResumeNext'UPGRADE_WARNING: Couldn't resolve default property of object no.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    no = Text1.Text

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Information)

    Else'UPGRADE_WARNING: Couldn't resolve default property of

    object no. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    'UPGRADE_WARNING: Couldn't resolve default property ofobject ans. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    ans = System.Math.Exp(no)EndIf'UPGRADE_WARNING: Couldn't resolve default property of object

    ans. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    Text1.Text = ansEndSub

    PrivateSub Command21_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command21.Click

    Text1.Text = CStr(-Val(Text1.Text))EndSub

    PrivateSub Command21_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) Handles

    Command21.MouseMoveDim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command21.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

  • 8/7/2019 D3802B38 NAVEEN

    23/32

    PrivateSub Command22_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command22.Click

    OnErrorGoTo hellsecond_Renamed = Val(Text1.Text)'UPGRADE_WARNING: Couldn't resolve default property of object

    operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    If operation = "+"Thenanswer = first + second_Renamed'UPGRADE_WARNING: Couldn't resolve default property of

    object operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    ElseIf operation = "-"Thenanswer = first - second_Renamed'UPGRADE_WARNING: Couldn't resolve default property of

    object operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    ElseIf operation = "*"Thenanswer = first * second_Renamed'UPGRADE_WARNING: Couldn't resolve default property of

    object operation. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    ElseIf operation = "/"Thenanswer = first / second_Renamed

    EndIfText1.Text = CStr(answer)ExitSub

    hell:MsgBox("Math Error", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command22_MouseMove(ByVal eventSender As System.Object,ByVal eventArgs As System.Windows.Forms.MouseEventArgs) HandlesCommand22.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command22.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command24_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command24.Click

    'UPGRADE_WARNING: Couldn't resolve default property of objectmark. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    mark = Falsejoean = ""hiolin = TrueIf Text1.Text = ""Then

  • 8/7/2019 D3802B38 NAVEEN

    24/32

    MsgBox("Please Enter Value", MsgBoxStyle.Information)Text1.Focus()ExitSub

    EndIfIf Val(Text1.Text) > 170 Or Val(Text1.Text)

  • 8/7/2019 D3802B38 NAVEEN

    25/32

    EndIfText1.Text = CStr(CDbl(Text1.Text) ^ 3)ExitSub

    hell:MsgBox("Over Flow", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command43_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command43.Click

    OnErrorGoTo hellIf Text1.Text = ""Then

    MsgBox("Please Enter Value", MsgBoxStyle.Information)ExitSub

    EndIfText1.Text = CStr(CDbl(Text1.Text) ^ 2)ExitSub

    hell:MsgBox("Over Flow", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command44_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command44.Click

    memory.Visible = Truemem = Text1.Textmemory.Text = " M"

    EndSub

    PrivateSub Command45_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command45.Click

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(System.Math.Sin(Val(Text1.Text)))count1 = 0

    EndSub

    PrivateSub Command46_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command46.Click

    OnErrorGoTo hellIf Text1.Text = ""Then

    MsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr(System.Math.Sqrt(CDbl(Text1.Text)))ExitSub

    hell:MsgBox("Math Error", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command47_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command47.Click

  • 8/7/2019 D3802B38 NAVEEN

    26/32

    'UPGRADE_WARNING: Couldn't resolve default property of objectmark. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    mark = Trueoperand1 = Val(Text1.Text)joean = "mod"

    EndSub

    PrivateSub Command48_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command48.Click

    'UPGRADE_WARNING: Couldn't resolve default property of objectmark. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    mark = Trueoperand1 = Val(Text1.Text)joean = "^"

    EndSub

    PrivateSub Command49_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command49.Click

    memory.Visible = Truememory.Text = ""mem = "0"

    EndSub

    PrivateSub Command5_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command5.Click

    Text1.Text = Text1.Text & "4"EndSub

    PrivateSub Command5_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command5.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command5.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command50_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command50.Click

    If Text1.Text = ""ThenMsgBox("Please enter value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(System.Math.Tan(Val(Text1.Text)))count1 = 0'Dim rad3'first = Val(Text1.Text)'answer = Tan(Text1.Text)'Text1.Text = answer'rad3 = Text1 * (3.14059265358979 / 180)'Text1 = Tan(rad3)

  • 8/7/2019 D3802B38 NAVEEN

    27/32

    EndSub

    PrivateSub Command51_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command51.Click

    memory.Visible = TrueText1.Text = mem

    EndSub

    PrivateSub Command52_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command52.Click

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(System.Math.Cos(Val(Text1.Text)))count1 = 0'Dim rad2'rad2 = Text1 * (3.14059265358979 / 180)

    'Text1 = Cos(rad2)EndSub

    PrivateSub Command53_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command53.Click

    OnErrorGoTo hellIf Text1.Text = ""Then

    MsgBox("Please enter value", MsgBoxStyle.Information)ExitSub

    EndIfIf Text1.Text = "0"Then

    Text1.Text = "Cant divided by zero"Else

    Text1.Text = CStr(1 / Val(Text1.Text))EndIfExitSub

    hell:MsgBox("Math Error!", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command54_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command54.Click

    OnErrorGoTo hellIf Text1.Text = ""Then

    MsgBox("Please Enter Value", MsgBoxStyle.Information)Text1.Focus()ExitSub

    EndIf'UPGRADE_WARNING: Couldn't resolve default property of object no.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    no = Text1.Text'UPGRADE_WARNING: Couldn't resolve default property of object no.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    If no = "0"Then

  • 8/7/2019 D3802B38 NAVEEN

    28/32

    MsgBox("Math Error", MsgBoxStyle.Critical)Else

    'UPGRADE_WARNING: Couldn't resolve default property ofobject no. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    'UPGRADE_WARNING: Couldn't resolve default property ofobject ans. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    ans = System.Math.Log(no)EndIf'UPGRADE_WARNING: Couldn't resolve default property of object

    ans. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    Text1.Text = ansExitSub

    hell:MsgBox("Math Error", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command55_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command55.Click

    OnErrorGoTo hellIf Text1.Text = ""Then

    MsgBox("Please Enter Value", MsgBoxStyle.Information)ExitSub

    EndIfDim logmark AsDoublelogmark = System.Math.Log(Val(Text1.Text)) / System.Math.Log(10)Text1.Text = Str(logmark)ExitSub

    hell:MsgBox("Math Error", MsgBoxStyle.Critical)

    EndSub

    PrivateSub Command56_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command56.Click

    Dim Pi AsObject'UPGRADE_WARNING: Couldn't resolve default property of object Pi.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    Pi = 4 * System.Math.Atan(1)'UPGRADE_WARNING: Couldn't resolve default property of object Pi.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    Text1.Text = Pi

    EndSub

    PrivateSub Command57_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command57.Click

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIf

  • 8/7/2019 D3802B38 NAVEEN

    29/32

    Text1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(System.Math.Cos(Val(Text1.Text)) /

    System.Math.Sin(Val(Text1.Text)))count1 = 0'first = Val(Text1.Text)'answer = Cos(Text1.Text) / Sin(Text1.Text)'Text1.Text = answer

    EndSub

    PrivateSub Command58_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command58.Click

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(1 / System.Math.Cos(Val(Text1.Text)))count1 = 0

    EndSub

    PrivateSub Command59_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command59.Click

    If Text1.Text = ""ThenMsgBox("Please Enter Value", MsgBoxStyle.Critical)Text1.Focus()ExitSub

    EndIfText1.Text = CStr((CDbl(Text1.Text) * 3.14) / 180)Text1.Text = CStr(1 / System.Math.Sin(Val(Text1.Text)))count1 = 0

    EndSub

    PrivateSub Command6_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command6.Click

    Text1.Text = Text1.Text & "5"EndSub

    PrivateSub Command6_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command6.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command6.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)

    EndSub

    PrivateSub Command7_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command7.Click

    Text1.Text = Text1.Text & "6"EndSub

    PrivateSub Command7_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command7.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000

  • 8/7/2019 D3802B38 NAVEEN

    30/32

    Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \&H10000

    Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command7.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command8_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command8.Click

    Text1.Text = Text1.Text & "1"EndSub

    PrivateSub Command8_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command8.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)

    Command8.BackColor =System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Command9_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Command9.Click

    Text1.Text = Text1.Text & "2"EndSub

    PrivateSub Command9_MouseMove(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.MouseEventArgs) Handles Command9.MouseMove

    Dim Button AsShort = eventArgs.Button \ &H100000Dim Shift AsShort = System.Windows.Forms.Control.ModifierKeys \

    &H10000Dim X AsSingle = VB6.PixelsToTwipsX(eventArgs.X)Dim Y AsSingle = VB6.PixelsToTwipsY(eventArgs.Y)Command9.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HFFFF00)EndSub

    PrivateSub Form1_Load(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) HandlesMyBase.Load

    Frame3.Visible = Falsememory.Visible = False

    EndSub

    PublicSub mnuAuthor_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnuAuthor.Click

    Form2.Show()Me.Enabled = False

    EndSub

    PublicSub mnucall_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnucall.Click

    Shell("calc.exe")

  • 8/7/2019 D3802B38 NAVEEN

    31/32

    EndSub

    PublicSub mnucopy_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnucopy.Click

    mnupaSTE.Enabled = TrueMy.Computer.Clipboard.SetText(Text1.Text)

    EndSub

    PublicSub mnuexit_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnuexit.Click

    Dim a AsObject'UPGRADE_WARNING: Couldn't resolve default property of object a.

    Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

    a = MsgBox("Are you sure you want to quit?", MsgBoxStyle.YesNo +MsgBoxStyle.Question)

    If a = MsgBoxResult.Yes ThenEnd

    EndIfEndSub

    PublicSub mnupaSTE_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnupaSTE.Click

    Text1.Text = My.Computer.Clipboard.GetTextEndSub

    PublicSub mnuScientific_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnuScientific.Click

    Me.Height = VB6.TwipsToPixelsY(4905)Me.Width = VB6.TwipsToPixelsX(10230)Frame3.Visible = TruemnuScientific.Checked = TruemnuStandard.Checked = FalseText1.Focus()

    EndSub

    PublicSub mnuStandard_Click(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles mnuStandard.Click

    Me.Width = VB6.TwipsToPixelsX(5175)Me.Height = VB6.TwipsToPixelsY(5010)Command21.Visible = TrueCommand22.Visible = TrueFrame1.Visible = TrueText1.Visible = Truememory.Visible = False

    EndSub

    PrivateSub Text1_KeyPress(ByVal eventSender As System.Object, ByValeventArgs As System.Windows.Forms.KeyPressEventArgs) Handles Text1.KeyPress

    Dim KeyAscii AsShort = Asc(eventArgs.KeyChar)If IsNumeric(Chr(KeyAscii)) TrueThen KeyAscii = 0eventArgs.KeyChar = Chr(KeyAscii)If KeyAscii = 0 Then

    eventArgs.Handled = TrueEndIf

    EndSub

  • 8/7/2019 D3802B38 NAVEEN

    32/32

    PrivateSub Timer1_Tick(ByVal eventSender As System.Object, ByValeventArgs As System.EventArgs) Handles Timer1.Tick

    Command2.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command3.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command4.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command5.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command6.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command7.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command8.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command9.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command10.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command11.BackColor =System.Drawing.ColorTranslator.FromOle(&HC0C0FF)Command12.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HC0C0FF)Command13.BackColor =

    System.Drawing.ColorTranslator.FromOle(&HC0C0FF)

    Command14.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command16.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command15.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command17.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command18.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command19.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command21.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    Command22.BackColor =System.Drawing.ColorTranslator.FromOle(&HC000)

    EndSubEndClass

    OptionStrictOffOptionExplicitOnFriendClass Form2

    Inherits System.Windows.Forms.FormPrivateSub Form2_FormClosed(ByVal eventSender As System.Object, ByVal

    eventArgs As System.Windows.Forms.FormClosedEventArgs) HandlesMe.FormClosedForm1.Enabled = True

    EndSubEnd Class