Question: need help creating this 2 java classes (Restaurant class and ispection class) using the csv file that is attached as pictures first time working with

 need help creating this 2 java classes (Restaurant class and ispection
class) using the csv file that is attached as pictures first time
working with java therefore completley lost. any help or samples would be
need help creating this 2 java classes (Restaurant class and ispection class) using the csv file that is attached as pictures first time working with java therefore completley lost. any help or samples would be helpful ty ly!
helpful ty ly! Inspection Class The Inspection class is used to represent

Inspection Class The Inspection class is used to represent the particular inspection of a restaurant. It should store the date of the inspection, the assigned score, the violation description and the risk category. The class should provide a four parameter constructor public Inspection (Date date, int score, String violation, String risk) The constructor should throw an instance of IllegalArgumentException if it is called with null value for date; it is called with the score outside of the valid range of 0 to 100 (inclusive). The two string parameters are allowed to be null or empty (this will happen when there is no violation description and/or risk asses. ments for the given inspection, i.e., the corresponding column in the data set is empty). stawu MO M O - 011 V WA LE WWW WEB W w Date with H IN SAN 1415 2013070134 www RE Why wwwww chal . 24 6000 000000 CORSE OOS VOC GIOVET CITY TO Den Man 400034 RE Moderated 20 95.14 SALO2000 1 1 US 1410000 2013 2017012 ASST 2012 14732677320 DS 2017000 T. 000 2009 0:00 SI 1/4/701900 er re 2011 2015 New 2012 DODRE OL - 1002-2003 Stad vel HO SOON TEST IRISSA HIS 1 oboreTM DAN LORER TS M Bongo 101 NE LOCE Cro Store V be 10 . WS w w NOTICE PO . 2010 FLER Restaurant Class The Restaurant class is used to represent restaurants. It should store the following information: - name of business address of business phone number zip code postal code list of inspections Note: most of the restaurants appear on multiple rows of the data set since there are more than one inspection records for them This class should provide two constructors: public Restaurant (String name, String zip) public Restaurant (String name, String zip, String address, String phone) The following describes acceptable values for each of the constructor parameters. If a constructor is called with an invalid parameter, it should throw an instance of IllegalArgumentException name - any non-empty string zip - a string containing exactly five digits address - any non-empty string to indicate the address, null or an empty string when the data is not available (for example, when the column in the data set is empty) phone - any string to indicate the phone number, null or an empty string when the data is not available There should be no default constructor. The class should provide a method public void addInspection (Inspection inspect) that adds a given inspection to the list of inspections for the current Restaurant object. The method should throw an instance of IllegalArgumentException if it is called with null parameter, This class should implement comparable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!