Ask Question
19 May, 03:39

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.

+5
Answers (1)
  1. 19 May, 07:29
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers