Algorithm- Line 1 SET MIN=100 2 For I=1 to 30 3 INPUT MARK 4 IF MARK < MIN 5 THEN MIN=MARK
in Other Math Topics by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

It seems that the purpose of the algorithm is to find the smallest value in a list of 30 values. These values all appear to be expected to be less than or equal to 100, hence the presetting of MIN to (default) 100.  The first value in the list will therefore be less than or equal to 100 and the logic will set MIN to this value until a lower value is found in the list.

The algorithm as presented doesn’t show the scope of the FOR loop. Nevertheless, there seems to be sufficient evidence to show that the purpose of setting MIN to 100 is to provide an initial value which none of the values in the list can exceed.

by Top Rated User (1.2m points)

Related questions

1 answer
asked Oct 1, 2012 in Algebra 1 Answers by anonymous | 742 views
1 answer
1 answer
1 answer
asked Sep 10, 2013 in Other Math Topics by vareesha | 527 views
1 answer
asked Jun 17, 2022 in Statistics Answers by Happiness | 457 views
1 answer
asked Oct 8, 2019 in Pre-Algebra Answers by anonymous | 2.1k views
1 answer
asked Apr 29, 2019 in Algebra 1 Answers by anonymous | 466 views
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
87,516 questions
100,289 answers
2,420 comments
739,081 users