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, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
You know the right answer?
Aprogrammer develops the procedure makenumslist() to generate lists of numbers starting at start and...
Questions
question
Mathematics, 13.02.2020 02:07
question
Mathematics, 13.02.2020 02:09
Questions on the website: 13722367