Write a program that can maintain a roster of Student, using a LinkdStudentL.ist to enter students originally, and then storing the students into a sorted array. with a maximum of 10 students in the roster. The program should be able to search for a given student, add a student, and drop a student. The roster should be saved as a text file. The data type should be Student for this part. (We will use the polymorphism for Studentßecord in Project #2.) Write your ow LinkedStudentList class, including insertSorted(Student s), delete(Student s), isEmpty. teString0 You will create a sorted array for the roster from the list when the user selects "Save Changes" Your array should have a max size of 10 for this part of the project, but should be partially filled to begin. After the students have been stored in the sorted array, you should allow the user to add students (maintaining sorted order, but not allowing more than 10 students), drop students (with no "null" array entries) and search for students by ID and by name. Your search should return the Student, not a Boolean. You should include a menu for the user, including: Load roster from a file Add student Remove student Search student by ID „equals) Search student by name (-compareTo) "Save" change (this method will copy the list to a sorted array) "Save changes" (this method will save a sorted text file in a different file, so I can see the final roster) You may use a text file to store the original students (to make it easier for you to test) and load that unsorted roster into the linked list. You should be able to add/remove students using both the list and the array, but not both at the same time. Once the array is created, you will not need the list! (Your final part of the semester project will include “documentation' discussing the differences in using the list versus the array for adding/removing.)
Write a program that can maintain a roster of Student, using a LinkdStudentL.ist to enter students originally, and then storing the students into a sorted array. with a maximum of 10 students in the roster. The program should be able to search for a given student, add a student, and drop a student. The roster should be saved as a text file. The data type should be Student for this part. (We will use the polymorphism for Studentßecord in Project #2.) Write your ow LinkedStudentList class, including insertSorted(Student s), delete(Student s), isEmpty. teString0 You will create a sorted array for the roster from the list when the user selects "Save Changes" Your array should have a max size of 10 for this part of the project, but should be partially filled to begin. After the students have been stored in the sorted array, you should allow the user to add students (maintaining sorted order, but not allowing more than 10 students), drop students (with no "null" array entries) and search for students by ID and by name. Your search should return the Student, not a Boolean. You should include a menu for the user, including: Load roster from a file Add student Remove student Search student by ID „equals) Search student by name (-compareTo) "Save" change (this method will copy the list to a sorted array) "Save changes" (this method will save a sorted text file in a different file, so I can see the final roster) You may use a text file to store the original students (to make it easier for you to test) and load that unsorted roster into the linked list. You should be able to add/remove students using both the list and the array, but not both at the same time. Once the array is created, you will not need the list! (Your final part of the semester project will include “documentation' discussing the differences in using the list versus the array for adding/removing.)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Simple so i can understand
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 7 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education