Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i want to complete the code and make it class in java following theidea down? do

ID: 3617044 • Letter: I

Question

i want to complete the code and make it class in java following theidea down?
doctore has 7 days work
every day doctore work from 9 to 5 clock = 8 hours
make loop for doctor
if the doctor has less than 8 hours means has free time in thatday
then we make array to know which excatly hour doctore would befree
a[0]= 9;
a[1]=10;
a[2]=11;
a[3]=12;    all appointment has been selected
a[4]=1
a[5]=2;
a[6]=3;
a[7]=4;
will can not select 5 clock it is end work;
a[0]= 9;
a[1]=10;
a[2]=has no value mean free time and has no selectingappointment;
a[3]=12;
a[4]=1
a[5]=2;
a[6]=3;
a[7]=4;

i select month and find out which the doctor avaliblefrist   ;


Explanation / Answer

Your probably going to want to use something a little moreintuitive then a flat array if you trying to keep track of months,days, and hours all together.
If you could be more specific about what you want and a littlebetter with your english please. Are you looking to make a doctorobject which contains just 1 month, with 31 days of appointmenttimes, or did you want years (multiple months) as well? Then havean algorithm to search between your doctor objects to see which hasthe earliest available time? Does this data need to be persistent(stored externally so when the program is closed the data remainsand can be loaded back in when the program is restarted)? What datado you want to initialize the doctors with (you only supplied 1 dayfor 2 doctors above).