Question
Assume there is a file of registrants called registrant_data.json and valus of file contain lastname firstname session1 session2 session3 In python: Create a class for
Assume there is a file of registrants called "registrant_data.json" and valus of file contain "lastname" "firstname" "session1" "session2" "session3"
In python:
Create a class for a registrant called Registrant. It should derive from class dict and have keys that match the fields in the JSON data file.
Write a function called getJSONdata that reads the registrant_data.json file into a list of Registrant objects.
Write a function called generateList that creates a list of registrants, sorted in alphabetical order by last name, for any of the workshops and meals. Pass in the registrant list and the item of inquiry as parameters. Since this function will be used for all workshops and meals, it will need to be generic enough to handle all the options. The output of that function should be the sorted (by last name) list of registrants meeting the criteria.
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