RPN+calculator+submission+page

RPN calculator Start date: 20170227 Submission due: 20170301 9:00am Requirements: 1. Basic function: +, -, *, /, ^ are required. Please upload your code and run result screenshots. 2. further function: sin, cos, log, etc. are encouraged. You will get bonus 3. further extension: RPN expression convertor --- postfix --> infix. You will get more bonus


 * Doris:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%201/RPN+Calculator
 * Alex: 2.27
 * Tom: http://ibcs1-wd.wikispaces.com/-/Coursework/Team%203/February+27th%2C+Tom%27s+work+on+RPN+calculator
 * Charles: http://ibcs1-wd.wikispaces.com/-/Coursework/Team%204/RPN+calculator
 * Matt:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%205/RPN+Calculator
 * Michael:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%206/RPN+calculater
 * Enzo:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%207/3.1+HW+RPNCalculator
 * Arthur: http://ibcs1-wd.wikispaces.com/-/Coursework/Team%208/2.27+Classwork++-+RPN+calculator
 * David:http://ibcs1-wd.wikispaces.com/-/Coursework/Team%209/RPN
 * Margaret: http://ibcs1-wd.wikispaces.com/-/Coursework/Team%2010/RPN+Calculator

References: code format="python" def postfix_evaluation(s): s=s.split n=len(s) stack =[] for i in range(n): if s[i].isdigit: #append function is equivalent to push stack.append(int(s[i])) elif s[i]=="+": a=stack.pop b=stack.pop stack.append(int(a)+int(b)) elif s[i]=="*": **********       elif s[i]=="/": **********       elif s[i]=="-": **********   return stack.pop

s="10 2 8 * + 3 -" val=postfix_evaluation(s) print(val)
 * 1) space separtor is required, for solving 2 or more digits.

code Openbook references of stack: http://openbookproject.net/thinkcs/python/english3e/stacks.html