This is the project : For any expresion in there are aritmetics operators (plus, minus, product y/o division) with numbers and identificators. The program will identify if the expresion is write correct. If the expresion is incorrect , the program will show the kind of error that happend (Ex. if opened a parenthesis and not close it, so the program will show that there are a parenthesis that not close and the program will show the position that happen this error). In the report will be appear the correct sintax of the expression.
When i put in the calculator " (8+5 ) * 2 -- > Ok" but, when i put " (8 + 5 -*2) --> show the error " if there are more errors, the system will detect and show each errors.
List of errors [ 11 ]
E1. Error should occur if a parenthesis is opened and not closed (8 - 5 * 3
E2. There should be an error in the opposite case, if there should be a parenthesis before the operation. 8-2) * 3
E3. It would fail if after an operation (+ - / *), there is no number. 5 - + 3
E4. Error would appear if after opening a parenthesis there is an operation (* 3
E5. Error should occur if you start with a / 3 + 5 operation. Ex. (4 * (5 + 3) -1 The only error here would be to close the parenthesis after 1
E6. 1 + 3- / 1 The errors are that it begins with a multiplication, and the other between the subtraction and the Division there is no number.
E7. 8 - - 3 The error is that after the least there should be a number.
E8. (/ 8 + 5) / 3 - 6) The errors are that after 6 a parenthesis is being closed, but not
There are none that open it. Also, before 8 there is a division, so I should throw 2
E9. (4 - * 1 / There are 3 errors, between subtraction and multiplication there should be a number. After division there should be another number. Finally, it is necessary to close the parenthesis
E10. There are 2 errors, it is necessary to close the parenthesis that initiates the whole operation, and (7 - 2) * (1 + 3 (4 + 4) Close the parenthesis after multiplication
E11. 4 * / 5 The error is not a number between multiplication and division.
11 freelancere byder i gennemsnit $31 for dette job
Hi, I am good at c/c++ programming and can help you complete the C++ project in 24 hours. Please contact me as soon as possible for a discussion. With Regards, Koustav