Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Advanced level school computer science. need helps. A programmer is designing a social media app where users can post photos, videos, and status updates. Object-oriented
Advanced level school computer science. need helps.
A programmer is designing a social media app where users can post photos, videos, and status updates. Object-oriented programming will be used to model the posts. For every post, the data that will be stored include - username of user who posted, - timestamp of the post, - content of the post which is text-based, - number of "like" by other users who like the post. For photo and video posts, the URL of the photos and videos are also stored. (a) Draw a class diagram for the situation described, showing - the superclass - any subclasses - inheritance - properties - appropriate methods - polymorphism (b) Explain how inheritance is achieved with examples from this situation. To increase the engagement of the posts, users will be allowed to add comments. Each comment will record the username, timestamp and text. (c) Suggest changes to the class diagram to enable users to add comments for the posts. In anticipation of a large number of users and posts for the social media app, the programmer decided to use a NoSQL database to store information for the app. (d) Explain why the programmer may choose to use a NoSQL database in this situation. Social media apps gather substantial user data, requiring careful consideration of privacy concerns. (e) State two ways in which data protection laws help to minimise privacy concerns
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