Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Non parallel and parallel

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Non parallel and parallel

    You are to write 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

    a) Write a sequential (non-parallel) program that will accomplish above task.
    b) Write a concurrent (parallel) program that will produce the result of the above task.


  2. #2
    Junior Member
    Join Date
    Jun 2014
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Non parallel and parallel

    Would try to help to the best of my ability, but we received no code to guide you towards solving the problem. As far as I can see, this appears to be a homework assignment.

    7. While we will help you with your homework/other projects, realize we won't do it for you. If we see that you have at least given some effort, we will try to assist you free of charge (aka. giving us your thoughts on how to solve the problem). Providing homework solutions in full or in part is frowned upon, and contributions that are considered as such will be subject to moderation (editing and/or deletion)

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Non parallel and parallel

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    We can't do the work for you. Make some effort, ask specific questions about the code you've written that you need help with.

Similar Threads

  1. PARALLEL PROGRAMMING HELP PLEAAASE! :(
    By Soha.313 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: June 12th, 2014, 05:17 PM
  2. Sorting parallel arrays
    By dynasty in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 27th, 2013, 07:23 AM
  3. Two Parallel Arrays
    By jsmnr77 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 31st, 2013, 09:41 AM
  4. Parallel vectors synchronize
    By speaker in forum What's Wrong With My Code?
    Replies: 8
    Last Post: May 18th, 2012, 03:27 PM
  5. Help with parallel array
    By kid20304 in forum Collections and Generics
    Replies: 3
    Last Post: December 6th, 2011, 05:41 PM