MissingParks.java Compares a list of confirmed parks with a ham radio log file. Creates a file of missing park contacts. Algorithm Create an array of confirmed parks (size 500) Open confirmed parks file (CONFIRMEDPARKS.TXT) - example below ----------------------------------------------------------------------- Appomatox Courthouse Historical Park (HP03) Oklahoma City National Memorial (AA18) Cane River Creole NHP and Heritage Area National Historical Park (HP05) ----------------------------------------------------------------------- initialize parkCount = 0 loop until end of confirmed parks file read a park add park to confirmed parks array increment parkCount end loop close confirmed parks file open log file (NPOTA.LOG) - example below 0 1 2 3 4 5 6 7 012345678901234567890123456789012345678901234567890123456789012345678901234 --------------------------------------------------------------------------- QSO: 14220 PH 2016-01-01 0011 W0BH 59 KS N8P 59 HP20 QSO: 14264 PH 2016-01-01 0019 W0BH 59 KS K7ONP 59 NP44 QSO: 14200 PH 2016-01-01 0033 W0BH 59 KS WK5T 59 MN40 --------------------------------------------------------------------------- open missing parks report file (MISSINGPARKS.TXT) write report header to missing parks report file loop until end of log file read a log file park parkFound = false loop from 0 to parkCount-1 read a confirmed park from confirmed parks array if log file park == confirmed park parkFound = true end loop if parkFound == false write log file line to missing parks report file increment missing park count end loop write missing park total to missing parks report file close log file close missing parks report file Sample Output in missing parks report file: Missing Parks QSO: 14061 CW 2016-10-23 2042 W0BH 599 KS N2CX 599 AA08 QSO: 14268 PH 2016-07-18 1858 W0BH 59 KS ND4Z 59 AA15 QSO: 14265 PH 2016-07-28 2117 W0BH 59 KS ND4Z 59 AA20 Missing park count : 3 Note: You may write whatever you like to screen, but you should end with the total number of missing parks.