Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

//Please i need an output for this program Starting with the LinkedList Code, Li

ID: 3706786 • Letter: #

Question

//Please i need an output for this program

Starting with the LinkedList Code, Linked List Code, available on the Course BB Site, read an input file with observation of movement of Naked Mole Rats (NMRs) located in the Neuroscience Animal Care Center in 6s and create a node for each observation. Each observation or event is comprised of an animal RFID, a date, a time and a Reader #. Each line of the data input file, NMRCSC326TestData.txt, contains 1 event with the event values separated by a blank. An event occurs when an animal passes through an RFID reader. The readers are place in the experimental environment at location that enables researchers to study the animal’s behavior and social characteristics. To ensure that only events with valid RFID are used in the analysis, a file of valid RFIDs and animal Id numbers, NMRIdsCSC326.txt, is available. A test program for reading the input files is provided on the Course BB site, File IO for Linked List Lab. Your program should include the following: ? Check for IO problems and call appropriate exceptions and assertions to catch IO and data errors. o Use an assertion if there is a problem with any of the files. o To insure that only valid RFIDs are recorded, check the RFID of each incoming event and call an exception if the RFID is not in the list of RFIDs in the NMRIdsCSC326.txt. Write the information regarding exceptions to an error file, NMRErrors.txt, as well as the console. o To analyze the behavior of each animal, create a separate list for each animal and place the corresponding observations on the animal’s list. A typical data set is more than 10,000,000 observations. To test your code, use the test file, NMRCSC326TestData.txt which has approximately 1000 observations. Revise the LinkeList Class to include a TailPointer which points to the tail of the list; also revise the associated methods including the insert and remove methods and the constructor. Use a class to hold the observations. Use a class to hold the NMR Id information. Calculate the number of observations for each valid NMR observed and write it to a report file, NMRReport.txt, as well as the console. Also write the total number of observations and the number of invalid observations.

//Test io program

--------------------------------------------------------------------------

//NMR ids files

Explanation / Answer

This program is not doing any thing new it is opeaning files

Indata is for file CSC326TestData.txt let say X

OutData is for file NMRDataOut.txt let say Y

InNMR is for file NMRIdsCS3C26.txt let say P

OutNMR is for file NMRidout.txt let say Q

now it is checking if X,Y,P,Q are opend or not if they are not open then it will print error on the console but according to the question you need to use throws and write the error in NMRErrors.txt and print it on console too.

now if no error occured and every thing works fine till there then,

in while(!Indata.eof())

will run till it reads the file till it reaches the eof i.e., end of file.

as our file contains data so it reads our data and write it to variables RFID, Date, time and reader

now these data are written to file Outdata with space separated format.

so you are just copying data from one file to other.

similarly you are copying InNMR data to OutNMR file in the next while loop.

now you can say that you have a copy of files in Y and Q

now process the files as mentiond in the problem and handle error if occured in the calling function of Testio program and write the cached error to NMRError.txt file

and use the outNMR and outdata files to check for valid entries as mentiond in the problem.

finally as you asked as far as this problem is concerned it is just copying contents from one file to other and printing error on the console.

But you need to modify it according to the question specification to get the desired output like throw the error and print it on console as well.