Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (20%) Consider designing an APP for Instagram(IG). The APP consists of users, friends, photos and videos. Write a C++ program to maintain the entities
2. (20%) Consider designing an APP for Instagram(IG). The APP consists of users, friends, photos and videos. Write a C++ program to maintain the entities for the IG APP in the following way. (a) Choose an appropriate data structure and design a Users class to maintain the user info and friendship structure. Each user has an ID, a name, and a list of other users who are friends. (b) Write an AddFriend function to add a friend to the friend list. (C) Write an AddPost function to add a post, possibility with a photo or a video. (d) Write DeletPost and DeleteFriend functions to delete a post and a friend link. Deleting a post implies the deletion of all photos or videos associated with that post. Test your functions properly in the main program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started