scientific calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Padelia
    New Member
    • Apr 2008
    • 1

    #1

    scientific calculator

    I have an assignment that am struggling with. Im new to the java language and i have no ideas how to start this. plse help me in any way u can. Here's what i need:
    Java source code of a scientific calculator,with the following functions:
    -addition
    -substraction
    -division
    -multiplication
    -sin,cos,and tan
    -square and square root
    -pi
    -log

    requirements:
    -users should work with the calculaor in text mode only(no GUI components required)
    -By default,all inputs and outputs should be in decimal format. However,the user should have an option to switch to binay and hexadecimal input/output.
    -design ur application in such a way,that additional components(e.g functions, input/output format converters) can easily be added to the system.


    thank u for ur help.
    i need this as soon as possible.
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Here's what i need:
    Java source code of a scientific calculator,with the following functions:
    -addition
    -substraction
    -division
    -multiplication
    -sin,cos,and tan
    -square and square root
    -pi
    -log
    ..........OMG.. .........

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      A while ago I wrote a 10 part article about compilers. In detail are the lexical
      analyzer, the parser, code generator and the (minimal) interpreter described.
      The entire article comes with complete source code. It implements an expression
      parser and evaluator. You can easily build a scientific calculator out of it.

      Just check the Java 'Howtos' articles section.

      kind regards,

      Jos

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        Originally posted by JosAH
        A while ago I wrote a 10 part article about compilers. In detail are the lexical
        analyzer, the parser, code generator and the (minimal) interpreter described.
        The entire article comes with complete source code. It implements an expression
        parser and evaluator. You can easily build a scientific calculator out of it.

        Just check the Java 'Howtos' articles section.

        kind regards,

        Jos
        Nice article.... for me it's interesting to read.....
        I thought HowTo's were just bunch of simple codes for newbies, im wrong....

        Jos, do you have an authority to post a sticky thread?
        Like other forums, they have sticky threads.... ( Newbie guidance thread )....

        So that, they may aware of asking a complete code which is not allowed in this forum....

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by sukatoa
          Nice article.... for me it's interesting to read.....
          I thought HowTo's were just bunch of simple codes for newbies, im wrong....

          Jos, do you have an authority to post a sticky thread?
          Like other forums, they have sticky threads.... ( Newbie guidance thread )....

          So that, they may aware of asking a complete code which is not allowed in this forum....
          The Java 'howtos' (articles) are a bit more reading material and a bit more
          complicated than the usual stuff; I used to write one article every week but
          I stopped writing them. Maybe I'll take that up some time later if there are
          a bit more facilities present for the articles at this site.

          Stickies are sort of useless because almost nobody reads them and they're
          always on top of the list. People are already notified about the spoonfeeding
          code in the forum guidelines but they don't read those either ;-)

          kind regards,

          Jos

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Padelia, just so you're aware:

            The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

            Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

            Then when you are ready post a new question in this thread.

            You also posted a duplicate thread in the JavaScript howto/articles section which I have deleted. Not only is Java not JavaScript, questions do not belong to the articles section.

            MODERATOR

            Comment

            Working...