Use the Rational class to create a simple interactive rational desk calculator. This should take as input

Question:

Use the Rational class to create a simple interactive rational desk calculator. This should take as input expressions of the form “A op B”, as a string, where A and B are rationals (with a “/” character) or integers and op is one of the four basic arithmetic operations and return the result. If you wish, you may use postfix notation and a stack.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Numbers And Computers

ISBN: 9783319172606

1st Edition

Authors: Ronald T Kneusel

Question Posted: