This calculator program is designed to handle complex mathematical expressions with multiple levels of parentheses and different types of operators.
- Validating the parentheses structures, unmatched or not even
- Formatting the trailing zeros after computation
- Supports addition, subtraction, multiplication, modulo, and division operations.
- Handles parentheses of different types: (), [], {}.
- Restructure the parentheses as there is no multiplication sign between two different scopes of parentheses
- Evaluates expressions based on the correct mathematical precedence rules:
- Parentheses are evaluated first, starting from the innermost level.
- Multiplication and division are evaluated next, from left to right.
- Addition and subtraction are evaluated last, from left to right.
- Explaining the solutions step by step.
- Storing the problems along with answers to look up.
Enter your mathematical expression at the prompt. Use the following symbols for operations:
- Addition: +
- Subtraction: -
- Multiplication: *
- Division: /
- Modulo: %
You can also use parentheses to group operations. The calculator supports the following types of parentheses: (), [], {}.
-If you're having trouble with the calculator, ensure you're using the correct symbols for operations. The calculator uses the / symbol for division, not the ÷ symbol.
-Retyping the prompt will help somehow solve the "There is only one number" error. The mod symbol, "%," is one of the reasons if you copied from other sources.
- The "%" sign is not read correctly
- ld: warning: ignoring duplicate libraries: '-lc++,' the Makefile problem.
- input validation & error handling (words or numeric)
- exponents ( treat ^x as the operator and fix its precedence)
- roots
- trigonometry
- summation signs
- graphical interface
- learn more about header files, implementation of Guard Clause, and software developments
https://www.onlinegdb.com/ The online compiler will make compiling the program much easier to check whether it is functioning well. If not,
- installing MinGW or Cygwin, which are software packages that provide a collection of GNU software, including the GCC compiler, for Windows.
- installing Xcode in Mac for g++ compiler
- After that, type 'make' to compile the program
If you'd like to contribute to this project, please open an issue or submit a pull request. Comments, advice, and harsh criticism are much appreciated!!!