Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter



how to program a calculator


Posted Date: 06 Jan 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: Saqib Majeed       Member Level: Bronze
Rating:     Points: 2



We will understand by simple calculator, a program that parses a full line mathematical expression, evaluates it, and returns the result. The mathematical expression can contain any of the '*','/','+','-','(' signs. May it seem very simplistic, programming a simple calculator uses quite complex concepts. In a way, it tackles the difficulties you might encounter when creating a script compiler. Indeed, the idea is the same: to be able to interpret a mathematical expression and evaluate it, repecting the priority of operators. Therefore the expressions between '(' and ')' must be evaluated first and the '*' and '/' are always computed before '+' and '-'. Lets look at a few methods to achieve this.

Attachments

  • how to program a calculator (5944-61110-how to program a calculator.doc)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    (No tags found.)

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: An introduction to Java fast true color 2D animation and games graphics
    Previous Resource: C-Test Paper - 29 questions with answer
    Return to Discussion Resource Index
    Post New Resource
    Category: Computer & Technology


    Post resources and earn money!
     
    Related Resources


    Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.