Question: Suppose you have a set of numbers and they are in ascending order such as (6,2,9,5,8,7). In this set we have six pairs that

Suppose you have a set of numbers and they are in ascending order such as (6,2,9,5,8,7). In this set we have six pairs that are out of this rule or sequence as following : (6,2),(6,5),(9,5).(9,8).etc 1. You are requested to write an algorithm to display how many numbers which they are out of order. 2. Build your algorithm by using OUBUILD 3. Provide two screenshots with different outputs.
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Step 1 include usin... View full answer
Get step-by-step solutions from verified subject matter experts
