subject
Mathematics, 22.08.2019 00:30 dria40

Find largest algorithm get a value for n, the size of the list get values for a1, a2, an, the list to be searched set the value of largest_so_far to a1 set the value of location to 1 set the value to i to 2 while ( i < = n ) do if a1 > largest_so_far then set largest_so_far to a1 set location to i add 1 to the value of i end of the loop print out the values of the largest_so_far and location stop question: if the numbers in our list were not unique and therefore the largest number could occur more than once, would the algorithm find the first occurrence? (select: true for "yes"; false for "no")

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 15:30
Which polynomial function has x intercepts -1, 0, and 2 and passes through the point (1, -6)
Answers: 2
question
Mathematics, 21.06.2019 21:20
Rose bought a new hat when she was on vacation. the following formula describes the percent sales tax rose paid b=t-c/c
Answers: 3
question
Mathematics, 21.06.2019 23:30
Ateacher wanted to buy a chair, a bookshelf, two tables and a desk. she spent $900 for all five items and the chair and the desk combined 70% of her total. if the bookshelf cost $50, how much did each of the tables cost?
Answers: 1
question
Mathematics, 22.06.2019 01:30
Find the circumference of a pizza with a diameter of 10 inches round to the nearest tenth
Answers: 1
You know the right answer?
Find largest algorithm get a value for n, the size of the list get values for a1, a2, an, the list...
Questions
question
Spanish, 20.06.2019 18:02
Questions on the website: 13722360