Question: Hi, what is the python solution to this? You are required to create a back-end service that will help capture basic information about prospective students

Hi, what is the python solution to this?
You are required to create a back-end service that will help capture basic information about prospective students who come to inquire here at Umuzi. In this project you'll just be storing and retrieving information from plain old json files. Instructions 1. Create a class called visitor. Instances of this class should have the following properties: full name age date of visit time of visit comments name of the person who assisted the visitor 1. Create a function called save that saves the visitor's data to a JSON file. The file name should be named like this visitor_{their_full_name}.json. alice.save() # results in visitor_alice_cooper.json bob.save() # results in visitor_bob_marley.json charlie.save() # results in visitor_charley_sheen.json Notice that the full name used in the file is all lower-case and spaces are replaced by underscores. 1. Create a function called load that takes in a name and then grabs a Visitor object from file. It should return the visitors instance. eg Visitor.load("Alice Cooper") # returns all of Alice's goodies Visitor.load("Bob Marley") # Same deal for good ol Bob
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
