Skip to content

matemaynard99/Project_2A

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project_2A

Reads expressions from a .txt file and stores each expression as a string in an array of strings. Prints each original expressions followed by the result of each expression. Calls the evaluateEquation method which includes everyting needed to properly solve the expressions evaluateEquation includes several methods to solve the expressions the Precedence method returns a int value to determine the precedence for order of operations of the operators in the expression equation method evaluates each part of the expression, broken down into parts to properly evaluate the expression as a whole using a switch the boolean isNumber and isOperator methods simply check if the current char is one of either of those to evaluate the expression In main, there is a file reader to read the .txt file and store each expression as a string in a string array. Prints original expression as well as result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages