C++ program

profileSamta

This is not an essay based objective, it's about creating a very small program anyone with computer science experience can do in a really short time. here are the instructor's notes


 I am providing project details as discussed in class.
The project is due on 12/5/2019

Details:
1. Allow user input to enter a bunch of numeric values which can be decimals (maximum 10) separated by spaces
2. Get the user input, parse the values, and build an array of type double
3. write a function to process the array
- determine, maximum, minimum, average
- sort the numbers and determine the median
4. Write a function to print the values in the following format:
Input Array:
Sorted array output:
Maximum value:
Minimum value:
Average value:
Median value:

5. For sorting the numbers use bubble sort algorithm.
Bubble Sort Algorithm example:
function bubble_sort (array , N) {
// array – list of items to be sorted
// N – size of array
begin
swapped = false
repeat
for I = 1 to N-1
if array[i-1] > array[i] then
swap array[i-1] and array[i]
swapped = true
end if
end for
until not swapped
end

    • 7 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      array.cpp