Mathematics
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")

answer
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 14:00, ctyrector
Carson has only $20 bills and $10 bill in her wallet. the total value of the bills is $50. she has 1 more $20 bill than $10 bills. how many each kind of bill does carson have? a. one $20 and two $10 bills b. two $20 bills and one $10 bill c. one $20 bills and three $10 bills d. two $20 bills and two $10 bills
Answers: 2
image
Mathematics, 21.06.2019 23:00, Ellafrederick
Janie has $3. she earns $1.20 for each chore she does and can do fractions of chores. she wants to earn enough money to buy a cd for $13.50.
Answers: 2
image
Mathematics, 22.06.2019 00:00, rosie20052019
What is y times x by? y is __ times x
Answers: 3
image
Mathematics, 22.06.2019 01:00, imamnaab5710
3questions show how you solved the problem 1. subtract & simplify (โ€“y2 โ€“ 4y โ€“ 8) โ€“ (โ€“4y2 โ€“ 6y + 3) 2.multiply and simplify 2x2y3z2 ยท 4xy4x2 3.multiply and simplify (x โ€“ 4) (x2 โ€“ 5x โ€“ 6)
Answers: 1
Do you know the correct answer?
Find largest algorithm get a value for n, the size of the list get values for a1, a2, an, the list...

Questions in other subjects:

Konu
Mathematics, 10.10.2019 04:30