Skip to content

BrianJesseKimani/Infix-postfix-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infix-postfix-calculator

/*

  • Name: Brian Jesse Gatukui Kimani
  • project 1
  • I collaborated with Kevin Tusiime */

Our code comprises the following:

  1. a labs package 2.Calculator java file 3.extra_credit txt file 4.infix_expr_short txt file 5.myResults output file 6.tests java file
  2. OUTPUT from the command line
  3. postfix_eval_short

The labs package comprises our stack and queue data structures used to implement the shunting yard alrgorithm. The Calculator class which contains all the code (converting to postfix, postfix evaluation).

Kindly run the code on the command-line, with the first argument being the input txt file(either "infix_expr_short" or "extra_credit", and the second one being the name of your output file. you can also run the test java file in eclipse to print on the console.

The following are our avenues for extra credit: Implementation of all trigonometric functions: sin, cosine, tan Implementation of modulo and exponential functions Astute handling of invalid inputs

Thank you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages