DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2009
    Posts
    4

    Postfix Expression Calculatro

    The application reads a string which represent as the infix expession and evaluates it and ouput the result.
    Optional featues:
    -Make the GUI
    -Use awt/swing

    Hint:
    -Convert the infix to postfix expression using a Stack
    -Evaluates the postfix expression using a Stack

    Java Code Only

    Thanks in advance and more power on this site.

  2. #2
    Join Date
    Aug 2009
    Posts
    2
    how much extra credit will your teacher give you for using Swing?

  3. #3
    Join Date
    Aug 2009
    Posts
    4
    Any, the important things is to display the output,
    for example,

    input: 1+2*3-4
    output: 3

    precedence: */% +-

    must better if you include also the postfix in the result.
    thanks...!!!

  4. #4
    Join Date
    Aug 2009
    Posts
    2
    *sigh* Sarcasm is lost on kids these days.

  5. #5
    Join Date
    Aug 2009
    Posts
    4
    Hepl me please...!!!

  6. #6
    Join Date
    Aug 2009
    Posts
    4

    Hepl me

    The application reads a string which represent as the infix expession and evaluates it and ouput the result.

    for example,

    input: 1+2*3-4


    Output

    Result for postfix: "display the postfix value"
    Result:"3"

  7. #7
    Join Date
    Apr 2008
    Location
    Finland
    Posts
    52
    Show what you have got so far and you'll get help.

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Quote Originally Posted by uclmbenz_castro View Post
    The application reads a string which represent as the infix expession and evaluates it and ouput the result.

    for example,

    input: 1+2*3-4


    Output

    Result for postfix: "display the postfix value"
    Result:"3"
    I've read this several times, but I can't find a question.

    What are you after here?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Postfix Calculator
    By comp101 in forum Java
    Replies: 0
    Last Post: 07-20-2009, 12:20 AM
  2. regular expression
    By elmasduro in forum Database
    Replies: 0
    Last Post: 03-29-2007, 02:49 PM
  3. Replies: 2
    Last Post: 09-29-2005, 02:09 AM
  4. Infix to Postfix
    By arvinp in forum Java
    Replies: 0
    Last Post: 03-05-2005, 11:40 PM
  5. Option Strict and IIF
    By Bob in forum .NET
    Replies: 5
    Last Post: 05-16-2002, 07:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links