Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

Assessment of skills and interests.

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago