Assignment 13
Assignment 13
a. Variables:
maxStd: the maximum of the Student in the array
nextStd: the number of the actual Student in the array
Student[ ] std: store the list of the Student
b. Write createStudent() method: creates a new student and adds to the array. If the maximum
length of the array is reached then a message is displayed.
c. Write viewAll() method: display all the student array in the right format. If array is empty, displays
appropriate message
d. Write searchStudent(int id) method: find student in batch by ID.
e. In the main method, use the switch-case and loop statements to displays a following menu and
allows exiting the application if only exit function is chosen.
1. Create New Student
2. Search student by ID
3. View all students
4. Exit