subject

2. The following is a function: FUNCTION findmax(score)
length <- len(score)
maxvalue <- score[0]
FOR n <- 1 TO length - 1
IF score[n] > maxvalue
maxvalue <- score[n]
ENDIF
ENDFOR
RETURN maxvalue
ENDFUNCTION

(a) Write a statement to use this function to find the maximum value in an array NumberOfViewers

(b) Give the name of a parameter used by this function.

(c) Identify a local variable

(d) State the data type of score.

(e) Give an example from this function of
(i) an assignment statement [1]

(ii) iteration

(iii) selection

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
2. The following is a function: FUNCTION findmax(score)
length <- len(score)
maxvalu...
Questions
question
Mathematics, 15.11.2019 02:31
question
Social Studies, 15.11.2019 02:31