Question: 9. Draw a flowchart to find the maximum value and the minimum value of a list of N numbers, where N >= 1. Identify the
9. Draw a flowchart to find the maximum value and the minimum value of a list of N numbers, where N >= 1. Identify the basic control blocks in your flowchart.
10. Draw a flowchart to find the maximum value and the minimum value of a list of positive numbers, where -1 indicates the end of the list. Identify the basic control blocks in your flowchart.
For question 9, we know that the list contains N elements. (Usually, the first number is the number of elements in the list and is followed by the elements of the list.)
For question 10, we do not the number of elements in the list. In this case, we need an end of list tag (e.g., in the question, the end of the list is -1.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
