![]() This is supposed to remove the student element with the smallest ID. This logic proved to be wrong when I make a call to my 'remove' helper-function. ![]() I couldn't figure it out and moved on assuming that it was because I'm returning 'record' to a spot that doesn't do anything with the ID. When I make a call to 'smallest' in my 'perform task' function under condition (= n 3) I try to print out the ID in my base case in my smallest function to see if its working, and it displays the smallest ID but then gives me an error saying " The object #!unspecific is not applicable". My helper-function for sort-list named 'smallest' is supposed to return the smallest ID of a list passed into it. I'm currently trying to write a function to sort my list of students by ID in ascending order. Each element of this list is another list containing 3 items about a student: ID (string of digits), student name (string of chars), and grade (integer). I'm writing a program in scheme that will allow me to manage a list of information pertaining to a student.
0 Comments
Leave a Reply. |