for this assignment you need to write a program that parse the input o
For this assignment, you need to write a program that
• Parse the input of a combination of (1) a string representing a Boolean formula and (2) a string representing
an assignment into a Boolean formula syntax tree and an assignment map. Output the evaluation result of
the formula on the assiginment.
• Continuously take input from standard input, and output to standard output. Errors shall also be output
to standard output, but should always start with "Error:" followed by a brief description. Your program
should terminate gracefully (and quietly) once it sees EOF. Your program should not generate any extraneous
output; for example, do not print out prompt strings such as "please enter input" and things like that.
• Write your code in C++.
• Ensure that it compiles with the C++ compilor on
eceubuntu.uwaterloo.ca and runs on eceubuntu.uwaterloo.ca. (Use eceterm.uwaterloo.ca
to log-in from off-campus; then follow the instructions to connect to eceubuntu.)
• You can modify the skeleton as you wish, but you may only #include the following libraries (and no
others!) for the current assignment: iostream, fstream, sstream, iomanip, string, utility,
exception, vector, and map.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.