Object-Oriented Programming · Atlassian · Medium
Design and implement an API for recording agent scores and querying their average ratings. Features recordVote(String agentId, int score): Add a score for the specified agent. Valid scores range from 1 through 5. listAgentsWithAvgScore() -> List[Tuple[String, Float]]: Produce each agent's ID together with that agent's average score. listSortedAgentsByAvgScore() -> List[String]: Produce the agent IDs ordered by their average scores. Your design must specify how agents with…
Checking your access…