-
calculator_main.py contains two main executable functions of calculator - print_intro() and perform_calculating() (greeting and calculating).
-
user_communication directory consists 3 .py files:
a) greetings.py, which contains functions, used to greet user.
b) user_input.py, which contains functions of receiving and checking mistakes of user's number input.
c) calculator_processor.py, which contains output of calculation.
-
calculation directory consists calculation.py file, containing code of final calculating and receiving of the result.
-
operators directory consists 3 .py files:
a) operations.py, which contains all operators' calculation methods.
b) operators_class.py, which contains class Operator, used to store operators' data.
c) operators_list.py, which contain dictionaries of operator's symbols and regexes.
-
checking directory consists operator_checking.py file with functions, checking if user's operator is valid and if it is binary
-
(github component) .gitignore
When You start the calculator it -
- welcomes You and asks You about Your name to greet You by Your name
- explains, what operations and with what operators You can do
- asks You to print Your first number, operator and (in some cases) second number of Your calculation
Important: when You want radical(root), logarithm or exponentiation You should type Your operator as it was shown in the list and instead of "i" print there index You want
- (optional) shows You Your mistakes and asks to correct them
- prints You the result of Your calculation
- asks if You want to exit the Calculator or continue calculating.
Fantastic Calculator can do following operations:
- addition
- subtraction
- multiplication
- division
- exponentiation of power "i"
- modulus
- radical based on natural number "i" (root with a natural index)
- factorial
- logarithms based on natural number "i"
- natural logarithms
- logarithms based on 10