For this problem, you will need to generate arrays of 1000 to 10000 3 or  4 digit integers. You should generate the array using the random()  function in  a C++ program. (try: “man random” at command line for reference on this) Implement this algorithm 5 times in: C: an imperative language; Python or C++: an OO language; Haskell or Scheme: a functional language; Prolog: a logic language; and a language of your choosing. (You may replace C, C++ or Scheme by another language of the same type, ask me first) For each of the above 5 cases, your lab report should include: source code, screen shots (or other demonstration) of multiple tests (at least 5 with different data), timing of multiple runs (at least 5 repetitions with same data). To allow comparison of different languages, the timing test for all 5 implementations should use the same data. You should describe your impressions of: 1. Ease/difficulty of of programming 2. Ease/difficulty of debugging 3. Speed of execution 4. any other comments

Generating arrays of random numbers in different programming languages and analyzing different aspects such as ease of programming, debugging, and speed of execution is the focus of this problem. The task involves implementing the algorithm for generating the arrays 5 times using different programming languages: C, C++, Python, Haskell (or Scheme), Prolog, and a language of choice.

To start, we need to generate arrays of 1000 to 10000 3 or 4 digit integers. This can be done using the random() function in a C++ program. By using the random() function, we can generate random numbers within a specific range. In this case, we need to generate random 3 or 4 digit integers.

The random() function can be found in the C library, and the “man random” command can provide a reference for its usage. By using this function, we can generate a set of random numbers and store them in an array of the desired size.

The algorithm needs to be implemented 5 times in the following languages: C, Python/C++, Haskell/Scheme, Prolog, and a language of choice. It is important to note that the language of choice should be of the same type as the ones specified, and approval should be sought before replacing any of the specified languages.

For each of the 5 implementations, the lab report should include the source code, screen shots (or any other form of demonstration) of multiple tests, timing of multiple runs, and impressions of ease of programming, debugging, speed of execution, and any other relevant comments.

To allow for a fair comparison among different languages, the timing tests for all 5 implementations should use the same dataset. This ensures that any differences in execution times can be attributed to language-specific performance characteristics rather than variations in the input data.

In addition to the timing tests, multiple runs with different datasets should also be included in the lab report to provide a comprehensive evaluation of the language-specific implementations.

Overall, the lab report should aim to compare the ease of programming, debugging, and execution speed across the different programming languages, providing insights into the strengths and weaknesses of each language in relation to this specific problem.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.

Click Here to Make an Order Click Here to Hire a Writer