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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started