Show Bid Request
Java Class that evaluates and arithmetic expression
Bid Request Id: 420
|
|
|
Posted by: |
jra73 (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Jun 14, 2001 11:01:49 PM EDT
|
Bidding Closes: |
Jun 18, 2001 11:15:00 PM EDT
|
Viewed (by coders): |
663 times
|
|
|
|
Description:
CLASS SPECS
Need a Java class that will expose a public method called "eval". This method will take a single argument of class String and return a double. The purpose of the method is to evaluate an arithmetic expression (the String argument), confirm that it is a properly formatted arithmetic expression and convert the expression to a mathematical value. The functionality is similar in concept to that of Excel evaluating a data entered expression in a cell and displaying the results in the grid.
The method will recognize the following mathematical operators: + (unary,positive), -(unary, negative), + (addition), - (subtraction), * (multiplication), / (division).
The method will be able to handle multiple levels of nested parentheses. If there is the neeed to constrain the number of levels, this should be documented within the source.
The method will observe the proper arithmetical operator precedence.
The method will throw the following user defined exceptions: expUnmatchedParentheses, expExceedsNestingLevelConstraint, expIllegalArithemeticExpression (such as 28.3 * / 4 )
any help is appreciated
Deliverables: code must be heavily commented as this is a refresher for me to get back into java (it's been about 2 years)
Special Conditions / Other:
time is short
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$50 (USD)
|
Jun 15, 2001 1:05:45 AM EDT
|
9.95
(Excellent)
|
|
|
I can even do a little extra if you want to learn more |
|
|
|
|
|