Write code (i.e., just the code fragment, NO need to define…
Write code (i.e., just the code fragment, NO need to define a method or class) that will calculate the average of the produce prices (per pound) and then write out that average to another file named “AvgPrice.txt”. You may NOT use the Scanner class (you may use any other class(es) to read/write to the files). (You may assume that java.io.* has been imported.) (You may assume all possible exceptions that could occur will be re-thrown by the method this code is a part of, so you you do NOT need to handle any exceptions.)
Read Details