Ask Question
3 April, 03:09

Identify the steps that are used to find the maximum element from the following finite sequence

1, 8, 12, 9, 11, 2, 14, 5, 10, 4.

+4
Answers (1)
  1. 3 April, 03:11
    0
    1) Assign the first value to a variable x. This is x will take value 1.

    2) Read the next value in the sequence. If this value is greater than current value of x, replace the value of x with the new elemente. Else, just continue.

    3) If there are more elements in the sequence repeat steps from 2. Else, you already have the maximum element of the sequence in x.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Identify the steps that are used to find the maximum element from the following finite sequence 1, 8, 12, 9, 11, 2, 14, 5, 10, 4. ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers