Question: Test 1 Member fields and Constructors Student Test 1 ( string last, string first, int idNo ) For this test you will add member fields
Test Member fields and Constructors Student Teststring last, string first, int idNo For this test you will add member fields and constructors to the Student class. The private member fields to add are a string to represent a first name, a string to represent a last name and an int to represent an identification number. You must also provide the default no parameter constructor and one overloaded constructor that will accept two strings last name and first name and one int id number The default constructor should set first and last names to no space between the quotation marks and the id number to million After making the specified additions in the Student class, create and then return a new Student object using the provided parameters
Test Getters and Setters Student Test For this test, you are to add public getters and setters for the Student class member fields. The methods are to be named: Getters Setters GetFirstName SetFirstName GetLastName SetLastName GetIDNumber SetIDNumber After making the specified additions in the Student class, create and then return a new Student object using the default constructor.
Test Insert in array bool TestStudent enrollment, Student enrolled Given a Student array, enrollment, and a string, enrolled, search the array to find an empty slot null If an empty slot is located, place enrolled in the empty slot and return true. If there are no available slots, return false.
Test Remove from array bool TestStudent enrollment, int idNumber Given a Student array, enrollment, and an int, idNumber, search the array to find idNumber. If idNumber is found, mark the array location as empty null and return true. If idNumber is not found, return false.
Test Retrieve from array Student TestStudent enrollment, int idNumber Given a Student array, enrollment, and an int, idNumber, search the array to find idNumber. If idNumber is found, return the Student with the id number idNumber. If idNumber is not found, return null.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
