Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
Given a set of JSON objects (in a file is fine), for each unique ID field show the unique IPs associated with it and the number of times that IP appeared
Given a set of JSON objects (in a file is fine), for each unique ID field show the unique IPs associated with it and the number of times that IP appeared. Also, sum the score for that ID. Make no assumptions about the incoming JSON. Example input: {"id":"test","score":12,"ip":"1.2.3.4","message":"Hi"} {"id":"test","score":5,"ip":"1.2.3.5"} {"id":"test","score":17,"ip":"1.2.3.4"} {"id":"test2","score":9,"ip":"1.2.3.4"} Example output: test: 1.2.3.5: 1 1.2.3.4: 2 score: 34 test2: 1.2.3.4: 1 score: 9 Goal: Design and implement both the program to accomplish this, and the script to test the program in Python/Pytest. Send back the source code for both the program and the test, a Readme with the instructions for building/running program and tests, along with any assumptions you made. Also might be some dashboard to show the pytest result https://github.com/p00j4/pytest-metrics
Expert Solution
PFA
Archived Solution
You have full access to this solution. To save a copy with all formatting and attachments, use the button below.
For ready-to-submit work, please order a fresh solution below.





