subject
Computers and Technology, 29.01.2020 05:44 lucy773

Aprogrammer develops the procedure makenumslist() to generate lists of numbers starting at start and ending with the end. for example, makenumslist(4, 7) should return [4, 5, 6, 7].
procedure makenumslist(start, end) {
numslist โ† []
numtimes โ† (end - start) + 1
num โ† 1
repeat numtimes times {
append(numslist, num)
num โ† num + 1
}
return numslist
}
the programmer tests it with makenumslist(1, 4) and sees a return value of [1, 2, 3, 4].
can the programmer conclude that the procedure works correctly for all inputs?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added to a new table in data base
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
You know the right answer?
Aprogrammer develops the procedure makenumslist() to generate lists of numbers starting at start and...
Questions
question
Chemistry, 15.12.2021 23:50
question
Mathematics, 15.12.2021 23:50
Questions on the website: 13722361