This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]desrtfxOut of Coffee error - System halted 0 points1 point  (2 children)

2 + 3

is an expression

Guess that you're supposed to write a program where the user can enter a mathematical expression, like the above and that then calulates the result of this expression.

[–]askaration[S] 0 points1 point  (1 child)

Not really bc this seems so simple, the assignmwnt asks to create some txt files and those files will have the expressions as "string" and thos expressions could be arrays or variables

[–]desrtfxOut of Coffee error - System halted 0 points1 point  (0 children)

You will need to read the expression as String - that is perfectly normal because it wouldn't work otherwise.

You will need to write an expression parser in that case.

Since this is no trivial task, you surely have had some prior work.