Suppose you are given a list of students registered in a course and you are required to implement an array based student list. Each student in the list has name, regNo and cGpa donot use string datatype. Implement different function like constructor, setName, setReg, etc.You also need to implement following function related to array.
insertStudent() : It has 2 options
Asking the user for index
Asking the user for name of the student where the new student is to be added (New student should be added at the index of student whose name is entered)
If the list is full it should create larger list new size should be entered by the user, copy all the data in new list
Insertion will only be made if the reg of the new student doesn’t exist in the list
deleteStudent( ): Same as insertStudent( ) either by asking the index or student name
sort(): Ask the user to input his choice of sorting. Sorting can be based on
Cgpa
Name
Reg#
1
Expert's answer
2020-10-19T08:12:40-0400
Dear AHSAN, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment