Consider the following scenario: In a social media news feed, users are required to subscribe to the news feed before receiving any news or updates. Users can only subscribe to each news feed only up to five (5) different feeds.
Given your knowledge of linked structures and arrays, determine which of the two complex types you would use to implement the solution (1) for tracking the number of subscribers within a media company and (2) for tracking the number of news feed a subscriber can subscribe to. Justify your answers. (e.g., identify the advantages and disadvantage for inserting, deleting, and searching through different complex types.)
We can use array for the first case, where array element is user and we can easy get array size. And for second case we can use list, for inserting and deleting (subscribing/unsubscribing) feeds
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!
Learn more about our help with Assignments:
JavaJSPJSF