Computers and Technology
Computers and Technology, 21.12.2021 17:40, jerry7792

A list of numbers has n elements, indexed from 1 to n. The following algorithm is intended to display the number of elements in the list that have a value greater than 100. The algorithm uses the variables count and position. Steps 3 and 4 are missing. Step 1 Set count to 0 and position to 1.
Step 2 If the value of the element at index position is greater than 100, increase the value of count by 1.
Step 3 (missing step)
Step 4 (missing step)
Step 5 Display the value of count.

Required:
What could be used to replace steps 3 and 4 so that the algorithm works as intended?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, gabesurlas
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, mitalichavez1
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
image
Computers and Technology, 22.06.2019 22:30, kierafisher05
What is the most popular genre of video games?
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, lakenyagillard79
Python. primary u. s. interstate highways are numbered 1-99. odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. thus, the 405 services the 5, and the 290 services the 90. given a highway number, indicate whether it is a primary or auxiliary highway. if auxiliary, indicate what primary highway it serves. also indicate if the (primary) highway runs north/south or east/west.
Answers: 1
Do you know the correct answer?
A list of numbers has n elements, indexed from 1 to n. The following algorithm is intended to displa...

Questions in other subjects:

Konu
Mathematics, 19.12.2019 01:31