Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions