Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: need someone to help

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need someone to help

    Write a program to parse and evaluate programs consisting of assignment and print statements with fully parenthesized arithmetic expressions (see Program 4.3.5). For example, given the input
    A = 5
    B = 10
    C = A + B
    D = C * C
    print(D)
    your program should print the value 225. Assume that all variables and values are of type double. Use a symbol table to keep track of variable names.
    Experiments
    Write test programs to demonstrate that your Interpreter works correctly.
    In particular, write a program to evaluate polynomials of the form:
    ax5 + bx4 + cx3 + dx2 + ex + f
    Discuss the limitations of this language. What kinds of programs can you write in Java that you cannot write here?

    I HAVE NO IDEA WHAT TO DO. I NEED TO DO THIS RIGHT TO PASS THIS CLASS.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,462
    My Mood
    Hungover
    Thanks
    144
    Thanked 639 Times in 547 Posts

    Default Re: need someone to help

    Please don't simply dump your homework here. See the link in my signature on asking questions the smart way.

    Recommended reading: How to Program (stuck on homework? READ THIS BEFORE POSTING)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!