0

hello,,can you help me with my problem??if it's okey for you,,,

right now,,we are required to make a calculator using only string..ex:

i can only use the imports: JOptionPane/BufferedReader

Input
Mathematical String: 2 + (3*2)

Output
Result: 8

how can i implement the codes??our told us that we should make an algo of it,,but i don't know how,,help guyzz...do you know any other sites that could really help me about this problem??i also want to learn...thank you again...

5
Contributors
8
Replies
9
Views
9 Years
Discussion Span
Last Post by peter_budo
0

As you say in one of you other posts, if you are new and don't know how to make code,
start by writing simpler codes

0

thank you thank you very much,,,this is a GREAT gREAT help for me,,,,hehehe,,thank you,,mwuah!!

0

actually i am starting to make codes,,,i know some of them,,,but making a string calculator is our requirement for midterm,,,,

..by the way,,i just want to say sorry if i posted anywhere,,,but thank you all guyz,,,you're a great help!!

0

hello, i have run your codes,,i has no error when it was compiled,,but when i run it,,it said that it has no "main"...i am confused either...

1

Because you are supposed to implement main method and just feed user fetched data into provided parser

Votes + Comments
at least someone gets it
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.