Question: RetrieveInfo.java ( 2 0 points total ) The RetrieveInfo class searches through the Inventory.txt database file to find any matching records for the SKU provided
RetrieveInfo.java points total
The RetrieveInfo class searches through the Inventory.txt database file to find any matching records for the SKU provided by the user. This program will load each record and examine it to determine whether or not it matches the SKU. It will provide information corresponding to each SKU found, or indicate if none are found. And in the case several are found, it will tell us how many and give us a warning that we have some duplicate SKU numbers in use. It will also tell us how many records are in the database that were searched.
If a match is not found, such as YYYY the program will display points:
No SKUs were found for: YYYY
records searched.
If a single match is found, such as X the program will display points:
SKU FOUND: X
Motor Scooter Vespa Italy
records found.
records searched.
If more than one match is found, such as A the program will display points:
SKU FOUND: A
Vacuum ACME USA
Carpet Cleaner Bissell Mexico
WARNING: Duplicate SKUs found
records found.
records searched.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
