Answered step by step
Verified Expert Solution
Question
1 Approved Answer
implement a class, called YearlyOfficers, that will reorganise the records of the bcs . txt file into four text files, bcs 2 1 . txt
implement a class, called YearlyOfficers, that will reorganise the records of the bcstxt file into four text files, bcstxt bcstxt bcstxt bcstxt containingstudents from bcstxt registered with the Society in respectively. YearlyOfficers class will contain the following methods: i openFiles that will open the above mentioned files bcstxt bcstxt bcstxtbcstxt and bcstxt; ii separateOfficers that will read from the input text file, record by record line by linewriting into the appropriate output text file officers registered in and will be stored in bcstxt bcstxt bcstxt and bcstxtrespectively and also counting the number of officers in each output file; respectively andalso counting the number of officers in each output file;PageUp iii closeFiles closing the above mentioned files and displaying the number of officers in each of the bcstxt bcstxt bcstxt and bcstxt files.It is expected that appropriate API handling strings will be used in connection with UoB numbers and adequate Text IO operations. When the first two digits of the UoB number are not in the specified range then an exception is thrown, and preferably the error is recorded in an error log file. B Implement the YearlyOfficers class and show by running it that it separates the bcstxt file by using the abovementioned methods. B Apply unit testing, using JUnit, to the separateOfficers method. Identify a minimal test set, as a set of records in testOfficers.txt for testing this method and insert it as comment, at the
beginning of the testing method. The output files will be testOfficerstxt
testOfficerstxt testOfficerstxt and testOfficerstxt In java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started