Starting from:
$35

$29

Program Design - Project 2


Please implement a much better calculator than that in Project 1. The programming language can be C or C++.


Requirements:


    1. When you run your program and input an express in a line as follows, it can output the correct results. The operator precedence (order of operations) should be correct.






    2. Use parentheses to enforce the priorities



    3. Variables can be defined as follows






    4. Some math functions can be supported



    5. It can support arbitrary precision.





    6. More features can be found in the calculator BC in Unix-like systems. You can visit this page for more information. https://www.gnu.org/software/bc/manual/html_mono/bc.html

    7. Please use CMake to manage the source files if there are several.

    8. Hosting your source code at GitHub.com is an option. You are strongly recommended to create a repository at GitHub.com to hold your source code for this project. Git is a good tool for version control. If so, you can just put a link in the report of the project, and do not need to upload the source code to Blackboard. If you do not host your source code at GitHub.com, please upload your source with your report to Blackboard.


Rules:
    1. Please submit your project report before its deadline. After the deadline (even 1 second), 0 score!

    2. If you only implement requirements 1 and 2, the upper boundary of your score is 80. For a better score, you should implement the rest requirements.

    3. Your score will also depend on the quality of your source code and your report. Your report should be easy to understand and describe your work well, especially the highlights of your work.

    4. Please pay more attention to your code style. After all, this is not ACM-ICPC contest. You have enough time to write code with both correct results and a good code style. You will get a deduction if your code style is terrible. You can read the Google C++ Style Guide (http://google.github.io/styleguide/cppguide.html ) or some other guide for code style.

More products