77 956
Assignments Done
98,4%
Successfully Done
In August 2019

Answer to Question #30289 in C++ for Deema

Question #30289
First we need to create a database which maintains all the students in KSA.
Then we will create a social networking application like facebook that will maintain a list of friends of each student.
A student at KSA should have at least the following parameters:
ID: int (note that only IDs are unique for each student)
string First Name
double gpa
string Major
string College
Friend * friends: (this field is of type Friend pointer which points to the object of type Friend)
Student *next:
class Friend
{int id; // (who is a student)
Friend *next; // points to next Friend object}

create pointer, say KSADatabase, as the head of the database.
You should provide functions to support the following operations:
1.Add a new student in the list (take input from user, all the fields and add a new student)
2.Delete a student from the list (based on student’s ID). Notice that deleting a student should delete all the friends of that student as well.
3.Add a student as a friend of a student (by student ID). You should a
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions