Computers and Technology
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?

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 23.06.2019 01:00, leo4687
Complete the sentence about a presentation delivery method
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, genyjoannerubiera
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, BIKRAMlawati5544
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
Do you know the correct answer?
Aprogrammer develops the procedure makenumslist() to generate lists of numbers starting at start and...

Questions in other subjects:

Konu
Mathematics, 13.10.2021 03:40
Konu
Mathematics, 13.10.2021 03:40