Tier: 2-Intermediate
Create a basic calculator with addition feature.
- User can add multiple numbers using
addcommand. - User can add floating numbers using the
-fflag. - User can add only even/odd numbers using
even/oddsub-command. - User can use
--helpor-hflag to get all the available commands and flags.
Note: The stories 1 and 2 are basically for static typed language, where passed arguments must be of same type.
- User can use all the basic arithmetic operations like (addition, subtraction, multiplication and divison).
- User can use
--helpor-hflag to get the sub-commands of command. - Power of and Square Root of operation.