Explore BrainMass
Share

Explore BrainMass

    Sorting a List and Displaying Mean

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Simple Array Process

    ? Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean. Use the top-down modular approach and pseudocode to design a suitable program to solve it.

    Please generate only the pseudocode (a simple one) - No charting is required, but you may have to incorporate the bubble sort algorithm (like the ones below) to determine the number of salaries above and below the mean.

    (see diagram in attached file)

    © BrainMass Inc. brainmass.com October 9, 2019, 6:44 pm ad1c9bdddf
    https://brainmass.com/computer-science/sorting/sorting-list-displaying-mean-96480

    Attachments

    Solution Preview

    The document "Array Process.doc" in the attached compressed file, contains the pseducode for finding the mean salary as well as the number of ...

    Solution Summary

    The document "Array Process.doc" in the attached compressed file, contains the pseducode for finding the mean salary as well as the number of salaries above and below the mean taking as input the salary[1..N] array. It uses the subrouting BubbleSort to sort the array according to the flowchart given.

    $2.19