Please complete the following questions for homework this week (alongside watching the Low Level Languages video)
0 of 6 Questions completed
Questions:
You have already completed the assessment before. Hence you can not start it again.
Assessment is loading…
You must sign in or sign up to start the assessment.
You must first complete the following:
0 of 6 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Match the flowchart shapes to their purpose:




A programmer is writing a program that will output the median value of the data in an array. The array given may not be in order.
The median is found by having all the numbers in a row in ascending numerical order, and
taking the middle value.
Write an algorithm to output the median value of the given array called data.
This response will be reviewed and graded after submission.
Consider the following algorithm in Fig.2, expressed in pseudocode, as function S:
State the name of the algorithm implemented in Fig.2.
Consider the following algorithm in Fig.2, expressed in pseudocode, as function S:
Describe the purpose of this algorithm in Fig 2.
This response will be reviewed and graded after submission.
Using examples in pseudocode, describe how the number 12 would be found in the following data using the Binary Search algorithm.
[2,5,9,10,12,16]
This response will be reviewed and graded after submission.
The following pseudocode algorithm is for the subroutine characterMovement.
procedure characterMovement(inputKey:byVal, characterx:byRef,charactery:byRef) if inputKey == 37 then characterx = characterx + 1 elseif inputKey == 38 then charactery = charactery + 1 elseif inputKey == 39 then characterx = characterx – 1 elseif inputKey == 40 then charactery = charactery – 1 endif endprocedure
The three parameters within the subroutine are: