-The problem followings:
In an academic institute, students records include id, first name and last name. Write a function that accepts a list of student records. Each record is a list of integer, string, string - eg: '(1, "Sam", "Roger"), and records of new students may not have the id, they have only first and last name as in '("Kang" "Lee"). The function should
return a list ids.
If the student has an id then that is used, if the student does not have an id, full name is used as id so the returned list would look like '(1 "Kang Lee" 2 3 "Ravi Kumar" "Sarah Smith")
Hi
I can write a function which will meet all your requirements. Code is generic to handle all the types and fully commented so you can easily understand.
Please specify the programming language.
Thank You