Question: Write a program in java that reads the file below and performs the operations from left to right (DO NOT follow the order of operations!)

Write a program in java that reads the file below and performs the operations from left to right (DO NOT follow the order of operations!) Print the problem and the solution to the screen and to another file named "Solutions.txt". The solutions should have a precision of 3 when printed on screen and to file. HANDLE ALL EXCEPTIONS! Java program for beginners, no advanced methods please.

PROBLEM FILE: Problems.txt

EXAMPLE PROGRAM EXECUTION:

13 + 2 % 6 * 9 = 27.000

8 - 15 * 8 / 43 ^ 4 = 2.876

26 - 7 * 3 - 251 / 3 = -64.666

21 / 4 - 1646 * 934 % 17 = 4.500

42 * 31 + 28 - 908 * 12 ^ 4 / 56 = -12.5

1 + 1 * 1 % 1 / 1 ^ 1 - 1 = -1.000

REMEMBER: You will be printing to the screen AND to a file named "Solutions.txt".

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!