Question 3: (60 points) Student Management System In the following project, your task is to develop...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 3: (60 points) Student Management System In the following project, your task is to develop a "Student Management System" by applying the concept of a singly linked list. This system will help you efficiently organize and handle diverse student-related data. Within this system, each node will be equipped to carry relevant details for an individual student. These nodes will then be interconnected to construct an integrated singly linked list. Two pivotal components, specified as classes, make up the heart of this project: 1. Student Class holds the unique details of each student. Here's what it looks like: class Student { String id; String name; String course; int age; Student next; public Student (String id, String name, String course, int age) { } Within this class: Each student is designated with an 'id', 'name', 'course', and 'age'. The 'next' attribute points towards the next student in the linked list. this.id = id; this.name = name; this.course = course; this.age = age; this.next = null; 2. Student Management System Class, your control base, provides various functionalities for managing the student data: class Student Management System { Student head; public void addStudent (String id, String name, String course, int age) {...} public void displayStudents () {...} public void searchStudent (String id) {...} public void updateStudent (String id, String newName, String newCourse, int newAge) {...} public void delet public void countStudents () {...} } (String id) {...} Functions included in this class allow you to add students, display student information, search for a particular student by 'id', update student's details, delete a student's record, and count the total number of students. Each function utilizes various traversal methods and checks to ensure the proper function of the singly linked list. The given input text file for running this program consists of several command lines that instruct the application to perform certain operations like adding, displaying, searching, updating, deleting, and counting students. All students and operations are kept on individual lines. The commands must follow this format: 1. Add student: This command is followed by four parameters, separated by commas: 'ID', 'student name', 'course code', and 'student age'. For example: "Add student: ID1, Ahmed, CS101, 20" would add a new student with the ID 'ID1', the name 'Ahmed', taking the course 'CS101', and aged 20. IDs must be unique and should reflect the specific student's identifier. 2. Display students: Once this command is read, the application displays all students that are currently added. This is written as: "Display students: " 3. Search student: This command allows the application to locate a specific student by his/her ID. For instance, "Search student: ID1" would search for the student with the ID 'ID1'. 4. Update student: This command updates a student's data. Like the "Add student" command, it follows the format: "Update student: 'ID', 'new student name', 'new course name', 'new age"". Any part of a student's information can be updated this way. If the student's ID isn't found, no update will occur. 5. Delete student: This command removes a student from the system using their ID. Its format is "Delete student: "ID"". 6. Count students: This command outputs the total number of students currently in the application. This is written as "Count students: " in the input file. Remember to separate each command on a new line. Misformatted commands may cause errors or fail to function as expected. The UML class diagram for the project -head: Student Student Management System + addStudent (id: String, name: String, course: String, age: int) : void +displayStudents(): void + searchStudent (id: String): void + updateStudent (id: String, newName: String, newCourse: String, newAge: int): void + deleteStudent (id: String): void + count Students(): void Student Explanation of the UML: The Student class includes five private fields: id, name, course, age, and next. The constructor Student(id: String, name: String, course: String, age: int) initializes a new Student object. - id: String - name : String - course: String age: int -next: Student + Student (id: String, name: String, course: String, age: int) : void The Student Management System class includes head which is a Student object and several methods that perform various operations on the linked list of Student objects: addStudent(id, name, course, age) - append a new Student at the end of the linked list. displayStudents()) - print all student records. searchStudent(id) - find and print the student record for a given id, if it exists. updateStudent(id, newName, new Course, newAge) - update the student record for a given id, if it exists. deleteStudent (id) - delete the record for a given student id, if it exists. countStudents() - display total number of student records in the linked list. Please note that this UML only indicates types for method parameters and does indicate return types since all these methods don't return any value (they are all void). Question 3: (60 points) Student Management System In the following project, your task is to develop a "Student Management System" by applying the concept of a singly linked list. This system will help you efficiently organize and handle diverse student-related data. Within this system, each node will be equipped to carry relevant details for an individual student. These nodes will then be interconnected to construct an integrated singly linked list. Two pivotal components, specified as classes, make up the heart of this project: 1. Student Class holds the unique details of each student. Here's what it looks like: class Student { String id; String name; String course; int age; Student next; public Student (String id, String name, String course, int age) { } Within this class: Each student is designated with an 'id', 'name', 'course', and 'age'. The 'next' attribute points towards the next student in the linked list. this.id = id; this.name = name; this.course = course; this.age = age; this.next = null; 2. Student Management System Class, your control base, provides various functionalities for managing the student data: class Student Management System { Student head; public void addStudent (String id, String name, String course, int age) {...} public void displayStudents () {...} public void searchStudent (String id) {...} public void updateStudent (String id, String newName, String newCourse, int newAge) {...} public void delet public void countStudents () {...} } (String id) {...} Functions included in this class allow you to add students, display student information, search for a particular student by 'id', update student's details, delete a student's record, and count the total number of students. Each function utilizes various traversal methods and checks to ensure the proper function of the singly linked list. The given input text file for running this program consists of several command lines that instruct the application to perform certain operations like adding, displaying, searching, updating, deleting, and counting students. All students and operations are kept on individual lines. The commands must follow this format: 1. Add student: This command is followed by four parameters, separated by commas: 'ID', 'student name', 'course code', and 'student age'. For example: "Add student: ID1, Ahmed, CS101, 20" would add a new student with the ID 'ID1', the name 'Ahmed', taking the course 'CS101', and aged 20. IDs must be unique and should reflect the specific student's identifier. 2. Display students: Once this command is read, the application displays all students that are currently added. This is written as: "Display students: " 3. Search student: This command allows the application to locate a specific student by his/her ID. For instance, "Search student: ID1" would search for the student with the ID 'ID1'. 4. Update student: This command updates a student's data. Like the "Add student" command, it follows the format: "Update student: 'ID', 'new student name', 'new course name', 'new age"". Any part of a student's information can be updated this way. If the student's ID isn't found, no update will occur. 5. Delete student: This command removes a student from the system using their ID. Its format is "Delete student: "ID"". 6. Count students: This command outputs the total number of students currently in the application. This is written as "Count students: " in the input file. Remember to separate each command on a new line. Misformatted commands may cause errors or fail to function as expected. The UML class diagram for the project -head: Student Student Management System + addStudent (id: String, name: String, course: String, age: int) : void +displayStudents(): void + searchStudent (id: String): void + updateStudent (id: String, newName: String, newCourse: String, newAge: int): void + deleteStudent (id: String): void + count Students(): void Student Explanation of the UML: The Student class includes five private fields: id, name, course, age, and next. The constructor Student(id: String, name: String, course: String, age: int) initializes a new Student object. - id: String - name : String - course: String age: int -next: Student + Student (id: String, name: String, course: String, age: int) : void The Student Management System class includes head which is a Student object and several methods that perform various operations on the linked list of Student objects: addStudent(id, name, course, age) - append a new Student at the end of the linked list. displayStudents()) - print all student records. searchStudent(id) - find and print the student record for a given id, if it exists. updateStudent(id, newName, new Course, newAge) - update the student record for a given id, if it exists. deleteStudent (id) - delete the record for a given student id, if it exists. countStudents() - display total number of student records in the linked list. Please note that this UML only indicates types for method parameters and does indicate return types since all these methods don't return any value (they are all void).
Expert Answer:
Related Book For
Business Statistics A Decision Making Approach
ISBN: 9780133021844
9th Edition
Authors: David F. Groebner, Patrick W. Shannon, Phillip C. Fry
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
1. Contextual Application For a Specific Workplace : If your program is tailored for a specific workplace, clarify how it aligns with the unique culture, goals, and challenges of that organization....
-
A woman flies from Phoenix to Denver (a distance of 800 mi) at a rate 40 mph faster than on the return trip. If the total time of the trip is 9 hrs, what was her rate going to Denver, and what was...
-
How many elecrons make up a charge of -48.0C?
-
Should the multiple regression equation be used for predicting the amount of nicotine based on the amounts of tar and CO? Why or why not? Refer to the Minitab display and answer the given questions...
-
Suppose \(\mathbf{x} \sim M N(n, \boldsymbol{\pi})\) follows a multinomial distribution of size \(n\) and probability \(\pi\). Derive the variance matrix of \(\mathbf{x}\).
-
Book versus Tax Depreciation Griffith Delivery Service purchased a delivery truck for $33,600. The truck has an estimated useful life of six years and no salvage value . For purposes of preparing...
-
Mary, Shannon, and Anika each invested $9,000, $25,000, and $18,000, respectively, into a business. a. Calculate their investment ratio reduced to the lowest terms. 0 : 0 : 0
-
Julia is interested in a game called Kolita. To play Kolita she buys a ticket for $1, draws a ball at random from a box of 100 balls numbered 1 to 100. If the ball drawn matches the number on her...
-
Discuss the primary information system technologies likely to be used to support social media sites. Include a description of how the technology is used. Identify an ethical issue that might occur...
-
Given the vectors a = (1, 1, 5) 2 18 and find 6 = (3, 2,4)
-
One of the engineers on your staff has an excellent job offer from another company and asks your advice about whether or not to accept the position. You need him to complete a project that is crucial...
-
Allen has a craft store called Pentcrafto, where she sells home decor products made from recycled paper. In the context of marketing, what utilities are Pentcrafto's products most likely to provide?...
-
Netflix Organizational Change & Structure Case Study _________________________________________________________ GENERAL INSTRUCTIONS: Please make sure to write your name , student id and entire course...
-
6 (a) Write down the name of the conics given by the polar curver= 2 + sin 0 (b) Determine the vertices and the center of the conics in the polar coordinate. (c) Find the center, end points of the...
-
Select the correct answer for each of the following questions. 1. On December 31, 20X3, Saxe Corporation was merged into Poe Corporation. In the business combination, Poe issued 200,000 shares of its...
-
More than 272 million computer and video games were sold in 2010more than two games for every U.S. household. Gamers spend an average of 3 to 4 hours playing games online every day. The average age...
-
Consider the following set of data: a. Use standard stepwise regression to produce an estimate of a multiple regression model to predict y. b. Use forward selection stepwise regression to produce an...
-
The Dow-Jones Industrial Average (DJIA) Index is a well-known stock index. The index was originally developed in 1884 and has been in place ever since as a gauge of how the U.S. stock market is...
-
Oxford Corporation began operations in 2015 and reported pretax financial income of 225,000 for the year. Oxfords tax depreciation exceeded its book depreciation by 40,000. Oxfords tax rate for 2015...
-
At December 31, 2015, Suffolk Corporation had an estimated warranty liability of 105,000 for accounting purposes and 0 for tax purposes. (The warranty costs are not deductible until paid.) The...
-
State whether each of the following events will result in a movement along General Motors (GMs) demand curve for labor in their U.S. automobile factories or whether it will cause its demand curve for...
Study smarter with the SolutionInn App