Kyle B.

asked • 05/24/21

Write a method that finds the operations which the results are wrong in given file

Assume that multiple arithmetic operations are stored in a file. However, some of the results are wrong


For example, given operations

1.0 + 2.0 = 4.0

2.5 + 2.5 = 5.0

3.0 / 2.0 = 1.0

the method should return 0th and 2nd line strings.


note:

Consider only those operations: +, -, *, /, %


again:

these operation are stored in a txt file, it needs a read method

1 Expert Answer

By:

Patrick B. answered • 05/24/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Kyle B.

thank you !!!
Report

05/24/21

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.