Fugitive Run Fugitive Escaped Oracle Detention Facility Authorities Currently Manhunt Ja V Q43823469
Fugitive on the Run
A fugitive has escaped the Oracle detention facility andauthorities are currently on a manhunt for Ja Va. After escapingpolice custody he acquired a credit card and made several purchasesto help him blend in and hide from the authorities.
Citizens are warned that he is armed and extremelydangerous.
The only clues to his whereabouts are the records of credit cardpurchases from 3 stores that he visited. If the credit card numbercan be determined, then a sweep can be conducted to catch thecriminal!
Your program is required to search through the 3 files to find acredit card number used at all three stores, then output what thatnumber is.
You may follow the rough pseudo code below. Note that it isincomplete and you may be required to interpret missing parts. Besure to properly document and comment your code.
Main Method:
declare and initialize a Boolean variable match to false
read a credit card number from the file
while match is false, and the credit card number is not null
pass the credit card number to the method that processes the secondstore, if it returns true then set match to true, otherwise repeatfrom (b)
if match is true or the credit card number is null then finish theprogram. Depending on the value of match, output the matchingresult or indicate no match found.
Process 2nd store:
declare and initialize a Boolean variable match to false
read a credit card number from the file
while match is false and the credit card number is not null
pass the credit card number to the method that processes the thirdstore, if it returns true and the credit card number from the firststore matches the second store then set match to true, otherwiserepeat from (b)
if match is true or the read credit card number is null then finishthe method and return match
3rd Store:
eclare and initialize a Boolean variable match to false
read a credit card number from the file
while match is false and the credit card number is not null
if the read credit card number matches the passed-in credit cardnumber then set match to true and end the loop, otherwise repeatfrom (b)
if match is true or the read credit card number is null then finishthe method and return match
Exceed the Expectations:
Continue searching to see if any other credit card numbers arein all 3 files!
Scrap the pseudocode above and implement your own linear searchalgorithm!
Include a developer’s report with a description of your algorithmand its implementation.
Expert Answer
Answer to Fugitive on the Run A fugitive has escaped the Oracle detention facility and authorities are currently on a manhunt for …
OR