The program provided at the left is a Parking System for Lot…

The program provided at the left is a Parking System for Lot A on campus. It manages 100 parking spots in Lot A using a single-dimensional array, and simulates the spot availability using random values – 0 for available spots and 1 for occupied spots at certain moment. This Java program will help users to check availability of Lot A, etc.  Complete the Parking program with the following three parts. No worries about the other methods that are not asked in this exam question. Due to the screen size limit, the other methods to make this program work are skipped in the screenshot at the left. Under the comment line a, declare an array to store the availability status for 100 parking spots. Create an integer array and name it lotA. (4 pts) Under the comment block b, Use a FOR loop to assign random values 0 or 1 to each element in this array lotA, where 0 represents an available spot, and 1 represents an occupied spot. This is to simulate the Lot A usage status at certain moment. (6 pts) Under the comment line c. write a method to check and return the total count of available spots for parking (i.e. count when an element value in the array is 0, and return the count result). Name this method checkAvailability(). This method is separated from the main method and could be called in your program to return the Lot A availability at any moment. (6 pts)  In the answer box, provide the comment lines for // a. create the array, //b. simulate Lot A usage, and //c. check availability method. You can provide your codes in each part under the comment lines. DO NOT copy or include the other codes for the rest of the program. Do not worry about the other methods that are not asked in this question. No line number is needed. Do the indentation as much as you can for better reading, but it is not required. Please still follow all the naming conventions as we learned in this course.

                                                           …

                                                                                                                                                    Notice: DO NOT CLICK PAST THIS QUESTION UNTIL AFTER YOU HAVE COMPLETED TESTING IN EXAMPLIFY!   Read all instructions before moving ahead. 1. A white board is permitted on your exam.  Show the blank white board now to the screen. 2. Please navigate to Examplify at this time. You cannot copy/paste the password.  You will need to split your screen to enter the password in Examplify. Do not share the password with anyone!  Your exam password is: dBnn6cEw4jhZ 3. Do NOT close this window until you have completed your Examplify test and uploaded it successfully (green check mark)! 4. Remember to return to Canvas after you’ve completed your assessment to submit this quiz. Submitting this quiz will end proctoring session and stop the recording. Any exam submitted that does not also have a complete recording session in Canvas will be assigned a grade of zero.   For any technical assistance, please contact Honorlock support thru the livechat at the bottom right of this page or by calling (855) 828-4004.   DO NOT GO PAST THIS QUESTION – LEAVE THIS QUESTION OPEN TO TEST!!!