Question: DISPLAY THE TASK MENU: FA 2 0 2 4 _ StudentWithGenericBSTandGenericAVLTree _ Smith.java MENU OF TASKS MENU JAMES SMITH - - - - - -

DISPLAY THE TASK MENU:
FA2024_StudentWithGenericBSTandGenericAVLTree_Smith.java
MENU OF TASKS MENU JAMES SMITH
--------------------------------------------------------------------------------------
1.Display all students in the data structure
2.Insert one new student
3.Search student
4.Display the information of one student
5.Modify information of one student
6.Delete one student
0.Exit and Update Database
TASK 1.DISPLAY ALL STUDENTS IN THE SELECTED TREE
Display all students in the selected tree by using the operation inorder() of the tree
TASK 2.INSERT ONE NEW STUDENT
Ask information of one student about student id, last name, first name, phone, address then create the object of FA2024_Student_yourLastName, insert it to selected tree by using the operation insert()
Check result and display message: Insert successfully OR display message: Insert failed
Call the above method treeLevel() to print output level of the tree after inserting a new node
TASK 3. CHECK IF A STUDENT EXISTS - SEARCH STUDENT
Ask users to enter student id that they want to search
Create the object of Student with the id then search it in the selected tree by operation search()
If it is found, display the message Student is found
Otherwise, display the message Student is not found
TASK 4.READ INFORMATION OF ONE STUDENT
Ask users to enter student id, read (fetch) from the student from the data structure
If it exists display the information of student
----------------------------------------------
STUDENT ID: 1234567
STUDENT NAME: Mary Lane
STUDENT PHONE: 2147251234
STUDENT ADDRESS: 123 Home street
-----------------------------------------------
Otherwise display message: Student cannot be found
TASK 5.UPDATE ONE STUDENT INFORMATION
Ask users to enter student id, access the method fetch() to have the object temp
Create the object named update by using copy constructor from temp
Display the menu to allow users to select information to change:
FA2024_StudentWithGenericBSTandGenericAVLTree_Smith.java
Update Information - JAMES SMITH
------------------------------------------------------------------------------------
1. Change last name and first name
2. Change phone
3. Change address
0. DONE.
When users select one information, display message to ask new information and use the object update to access mutator method of that field to change.
When users select 0 for DONE then delete the object temp and insert the object update
If both delete and insert are success then display the message: Update student successfully otherwise display the message: Update failed
TASK 6. DELETE ONE STUDENT
Ask users to enter student id, create the student object with student id then delete the object from the tree by access the operation delete
If delete success display the message: Delete Student successfully; otherwise, display message: Delete student gets failed
Call the above method treeLevel() to print output level of the tree after inserting a new node

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!