Object Oriented and Concurrent Programming Project
$30-250 USD
In Bearbeitung
Veröffentlicht vor mehr als 8 Jahren
$30-250 USD
Bezahlt bei Lieferung
Design and implement a data analyzing command line tool. The analysis will take a number n and calculate the n-th prime number. While this specific implementation doesn’t provide much useful data, it is a good example of bulk data analysis and provides a platform for future enhancements such as a user interface, threading, and algorithm optimization.
When executed, the tool will read a single command line argument to determine the number of data files (aka blocks) to be retrieved and processed. As each data file is processed, simple console output will provide status information to the user. The results of the analysis done by the data processor will be written to an output file.
Refer to the example execution and output below.
The following classes or interfaces are provided as a starting point for the project:
• [login to view URL]: An interface that defines an algorithm for analyzing
the data file.
• [login to view URL]: An implementation of an analysis algorithm
that takes a very slow and naïve approach to finding prime numbers.
• [login to view URL]: An interface defining a data processor that takes a data file and performs the analysis on each item in the file. There will be multiple implementations of this interface throughout the course.
• [login to view URL]: An interface defining a data retriever that retrieves (or generates) data files/blocks that need to be processed. There will be multiple implementations of this interface throughout the course.
You must implement the following classes:
• [login to view URL]: The main class of the application which will have the main() method and the core logic to create the other classes and use the data retriever and processor.
• [login to view URL]: An implementation of DataRetriever that
randomly generates a data file and returns it. The data file format should contain a single number between 1 and 10,000 (inclusive) per line with 25 lines. To put it another way, 25 numbers between 1 and 10,000 separated by the newline (\n) character.
• [login to view URL]: An implementation of DataProcessor that
performs all processing on the same thread as the caller, thereby blocking
until the results of processing are complete. The implementation must have a constructor that takes an output directory and an AnalysisAlgorithm to be used when processing files. The analysis results must be written to a new file in the output directory. The format of the file must be the same as the input file (i.e. one number per line).
Dear Sir,
I have done many similar systems. So I can build this system to you easily. I can deliver this system to you in 1 day. Also Please check my feedback. Looking forward to hear from you soon.
Thanks.