
" jmock " implementing string evaluating object
- or -
Post a project like this3359
$25
- Posted:
- Proposals: 0
- Remote
- #950611
- Completed
Description
Experience Level: Intermediate
General information for the website: " jmock " implementing string evaluating object
Description of requirements/features: a string evaluating object.
class StringEval
{
double eval(String str)
{
//you implimentation here
}
};
here the string could be "3+4", "3*4", 4*(5+5)", "5-6+3*(4+1)" etc ....
they are all real numbers, you return should be 7 for "3+4", 12 for "3*4" etc...
it should throw exception when the input string is not evlauatable, for example, it will throw exception for "3*", "(3+4", "a+3" because they are all not evaluatable.
b. a jmock class to test this StringEval object
c. your eval support and variable, for example
user input "a=10", "b=a * 10", "c =a + b", "a=a+b", "a +1" sequentially, you should return
10, 100, 110, 110, 111,
you maintaining variables for each evulation result if there is assign "="
in this way you can test some more advanced jmock functions.
Thanks
Extra notes:
Description of requirements/features: a string evaluating object.
class StringEval
{
double eval(String str)
{
//you implimentation here
}
};
here the string could be "3+4", "3*4", 4*(5+5)", "5-6+3*(4+1)" etc ....
they are all real numbers, you return should be 7 for "3+4", 12 for "3*4" etc...
it should throw exception when the input string is not evlauatable, for example, it will throw exception for "3*", "(3+4", "a+3" because they are all not evaluatable.
b. a jmock class to test this StringEval object
c. your eval support and variable, for example
user input "a=10", "b=a * 10", "c =a + b", "a=a+b", "a +1" sequentially, you should return
10, 100, 110, 110, 111,
you maintaining variables for each evulation result if there is assign "="
in this way you can test some more advanced jmock functions.
Thanks
Extra notes:

Sai Kiran M.
100% (2)Projects Completed
2
Freelancers worked with
2
Projects awarded
20%
Last project
10 Dec 2015
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies