Question: Write a calcullator program in java that returns rationals, can do PEMDAS, can simplify expressions with logs, can use square roots and pi, and can

Write a calcullator program in java that returns rationals, can do PEMDAS, can simplify expressions with logs, can use square roots and pi, and can use recursion, implement the ans keyword (answer from last problem). Errors must not crash the system and must return meaningful messages. Everything must be returned in lowest terms. Example Input/Output is below.

Write a calcullator program in java that returns rationals, can do PEMDAS,

Output Input 2+3*4-5A 2 2A3+4*5- 2 26 2+3) * (4-5)2 1/3+174+1/12 105/1344 2/3 5 64 1/4 3 +2 * 3 log 2 -2 3/20 9/100 1/2 12 7 2 rt 3 Common /SimplestRA 4/3*4 108 log 3 log3 of 108 ans 2 [where ans is 3/10 ans 2 [where ans is 3/ 10 3 rt 8 3 rt 108 * 3 rt 16 3 *2 rt 3 +4*2 rt 3 More Complex e 3) log e 3 +2* pi-1 7+2*e8eA(4-3 4 log 64 I/ log64 of 4 2n (5/3 + pi)/(3 rt 4 7-3) log (2 rt 2 2 +2 * pi 1/3 4 Advanced

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!