Skip to content

codingEmily/mathSolverProject

Repository files navigation

**GOAL**
Create an application that solves MATH PROBLEMS which are put in as STRINGS

• Example • function addNums("2 + 2") would return 4
• Example • function poorInput("2 +++ 4 / 0 - + 100) would return NaN due to lack of proper formatting

**POSSIBLE EQUATIONS**
1. Addition ( + ) 
2. Substraction ( - ) 
3. Multipliction ( * ) 
4. Division ( / )

**RULES**
1. Must be able to take a series of operations (2 x 3 / 4 + 18, etc), while following PEMDAS/Order Of Operations

**ADVICE - Use "Regular Expressions"**
Watch a video he shares on "regular expressions", aka "regex", they aren't NECESSARY for this project, but he think they are a better way to build this problem out.

**EXTRAS**
1. Exponents ( ^ )
2. Parentheses for altering/clarifying/defining order of operations

3. Styling would be nice
    a. Calculator style (equivalent to suggestion d.)
    b. Quizlet-style - "can you get the answer right w/o checking" situation/
    c. or even just making the basic OG layout, but with better spacing
    d. or adding buttons to guarantee proper user input (user adds equation using buttons rather than strings, much more controlled, but pretty much the opposite of course instructions lol)

Releases

No releases published

Packages

No packages published