Question
w.rite a parallel program that will receive a large array of unsorted integers containing digits from 0 to 99. The program will have to calculate
w.rite a parallel program that will receive a large array of unsorted integers containing digits from 0 to 99. The program will have to calculate the SUM and AVERAGE of ODD number digits between 25 and 75 (inclusive).
The user may specify the size or the array and the total processor that the machine has. The size of the array must be divisible by number of processor. Based on the given size, the computer will generate random integer numbers automatically to populate the array.
The program should display the status of the calculation for each processor. The result should be displayed after all calculations are completed. Error messages should be displayed appropriately.
tasks
a) W.rite a sequential (non-parallel) program that will accomplish above task.
b) W.rite a concurrent (parallel) program that will produce the result of the above task.
c) Produce a report to discuss your approach to the problem within the context of Flynn's
taxonomy. You should also discuss the advantages and disadvantages of your approach.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started