1 00:00:01,830 --> 00:00:02,550 Welcome back, my friend. 2 00:00:02,580 --> 00:00:05,400 Welcome to our walkthrough. 3 00:00:05,490 --> 00:00:11,120 I'm going to walk through the final version of this project so you don't have to do this. 4 00:00:11,130 --> 00:00:14,010 You don't have to listen to this lecture if you're planning to work with me. 5 00:00:14,280 --> 00:00:16,060 And that will start from the next lecture. 6 00:00:16,380 --> 00:00:21,750 So if you don't plan to do to work with me, if you just want to know what the discourse I mean, what 7 00:00:21,750 --> 00:00:27,480 this section is about, what we're going to do about this challenge, then I'm going to show you and 8 00:00:27,480 --> 00:00:31,200 I'm going to explain you the final version of these six challenge. 9 00:00:31,380 --> 00:00:34,860 So here I do have this clinic working. 10 00:00:34,860 --> 00:00:37,280 You do have this report that I've shown you last night. 11 00:00:37,680 --> 00:00:39,610 So you have the final and you have the story. 12 00:00:39,900 --> 00:00:42,090 So I'm just going to open the Vasco here. 13 00:00:42,960 --> 00:00:43,830 I'm going to navigate. 14 00:00:45,860 --> 00:00:53,000 Just going to open the folder and I'm going to go to the final one, right, and in the final, you're 15 00:00:53,000 --> 00:00:58,430 going to have index, you're going to have this image here, this image, I just grab it from Splash. 16 00:00:58,430 --> 00:01:00,280 And that's why I'm saying thank you here. 17 00:01:00,710 --> 00:01:11,690 And this is the finished version of our product of our application, and that is for this application 18 00:01:11,690 --> 00:01:15,670 will be actually for practicing six skills. 19 00:01:15,680 --> 00:01:16,040 Right. 20 00:01:16,350 --> 00:01:20,150 OK, so let's start from DOT and I'm going to open. 21 00:01:23,780 --> 00:01:31,940 I'm going to open this index open with the server and it's going to open up here, but I don't want 22 00:01:31,940 --> 00:01:33,190 to use this Firefox. 23 00:01:33,210 --> 00:01:34,190 I'm just going to close this. 24 00:01:34,650 --> 00:01:43,700 I'm going to go to Google Google Chrome, open this bastard down here, and that's pretty much it. 25 00:01:43,730 --> 00:01:47,510 Now, one thing here, my entire styling is this. 26 00:01:47,510 --> 00:01:53,040 So I didn't worry too much because this is just for practicing this challenge, you see to get you better. 27 00:01:53,060 --> 00:01:53,410 Right. 28 00:01:53,700 --> 00:01:55,460 OK, I'm done with this. 29 00:01:57,230 --> 00:02:04,040 So the first thing's first in our report, seeing that all of our clinics are parking, have a building 30 00:02:04,040 --> 00:02:10,670 address in your built in, that is a perfect, perfect scenario for creating our corporate parent or 31 00:02:11,080 --> 00:02:11,830 superclass. 32 00:02:12,170 --> 00:02:15,360 So I'm going to name the superclass building it. 33 00:02:15,440 --> 00:02:20,770 After that, I'm going to extend it to the parking into the clinic class that I have. 34 00:02:20,780 --> 00:02:28,280 So this every class, every class needs to have a constructor in the address and your building goes 35 00:02:28,280 --> 00:02:28,620 here. 36 00:02:28,880 --> 00:02:33,250 Now we initialize them through the parameters we're passing here. 37 00:02:33,860 --> 00:02:36,090 Now, this is our parent or super class. 38 00:02:36,560 --> 00:02:41,510 Now let's create a parking class, know let's create a completely class, because that is pretty much 39 00:02:41,510 --> 00:02:44,830 we are talking about clinic report in parking report. 40 00:02:44,900 --> 00:02:46,670 Maybe you were thinking how many classes I need. 41 00:02:46,910 --> 00:02:47,330 Wow. 42 00:02:47,810 --> 00:02:48,380 It's simple. 43 00:02:48,380 --> 00:02:52,220 You need to do some classes in one super class. 44 00:02:52,580 --> 00:02:56,240 OK, now the solution is not a final solution. 45 00:02:56,240 --> 00:03:00,310 You can create a better solution if you spend more time if you think more. 46 00:03:00,770 --> 00:03:01,050 Right. 47 00:03:01,310 --> 00:03:02,780 OK, this is just for practicing. 48 00:03:03,050 --> 00:03:11,210 Debarking will have its constructor its own variables, except these two with its own parameters so 49 00:03:11,540 --> 00:03:16,190 we can tackle the superclass in order to create that inheritance with this building. 50 00:03:16,550 --> 00:03:16,850 Right. 51 00:03:17,150 --> 00:03:19,090 So here you say this, that size. 52 00:03:19,280 --> 00:03:26,900 Now, this is the size of a parking, including this is the size of the parking, including hourly in 53 00:03:26,900 --> 00:03:27,860 all the parking. 54 00:03:27,860 --> 00:03:28,190 Right. 55 00:03:28,820 --> 00:03:30,230 That including should be. 56 00:03:30,230 --> 00:03:30,500 Right. 57 00:03:30,860 --> 00:03:37,040 So now, if the size I'm not going to use it in this project, but I put it there and I'm going to tell 58 00:03:37,040 --> 00:03:37,510 you why. 59 00:03:37,850 --> 00:03:42,860 So I have four spot spots, hourly spots, prize hourly in full day price. 60 00:03:43,160 --> 00:03:43,490 Right. 61 00:03:43,500 --> 00:03:47,360 We do have two spots we don't want mention there here. 62 00:03:47,570 --> 00:03:53,840 But I just see average number of patients, every average number of all day parking that is full for 63 00:03:53,840 --> 00:03:57,980 spots or all spots you can put in hourly spot spots. 64 00:03:57,980 --> 00:04:06,800 And also they do have a separate pricing here, three dollars per hour and nine dollars for all day 65 00:04:06,800 --> 00:04:10,400 parking, cuz that's why I do have this. 66 00:04:10,400 --> 00:04:12,020 That's why I had it in the constructor. 67 00:04:12,350 --> 00:04:12,790 Nice. 68 00:04:12,800 --> 00:04:19,640 So the clinic, the clinic will have daily patient in this size, which I put it is the fault here. 69 00:04:20,030 --> 00:04:23,450 This default will be used later in this method here. 70 00:04:23,450 --> 00:04:28,580 But don't worry, at the beginning when you called it, if you got it together with me, we will leave 71 00:04:28,580 --> 00:04:33,500 this size without the full value, some extending to the super class of the parent. 72 00:04:34,670 --> 00:04:37,520 Right in initializing these two here. 73 00:04:37,950 --> 00:04:40,370 OK, now don't worry about the methods. 74 00:04:40,370 --> 00:04:45,050 Now inside, I'm going to create now the data. 75 00:04:45,560 --> 00:04:47,990 This will be the data for clinics. 76 00:04:48,260 --> 00:04:50,690 This will be the data for the parking's right. 77 00:04:50,780 --> 00:04:59,390 So the data for the clinics, I will create a nursery full of new clinics so this scene can be achieved 78 00:04:59,570 --> 00:05:03,470 if we create like this concept first clinic 79 00:05:06,350 --> 00:05:07,400 equal to new. 80 00:05:07,430 --> 00:05:08,870 And I can copy the rest of it. 81 00:05:09,140 --> 00:05:13,100 Now, this is still OK. 82 00:05:13,100 --> 00:05:15,190 So I'm creating a nuisance of a clinic class. 83 00:05:15,740 --> 00:05:20,270 But for the second I will need to put second here. 84 00:05:20,360 --> 00:05:20,720 Right. 85 00:05:21,650 --> 00:05:25,880 And that's not obviously my solution. 86 00:05:25,880 --> 00:05:27,020 It's not looking good. 87 00:05:27,200 --> 00:05:30,100 So that's why I put it inside of an area. 88 00:05:30,320 --> 00:05:31,900 Same goes for the parking space. 89 00:05:31,910 --> 00:05:39,800 Now, this is why here my data, you can just change it. 90 00:05:40,130 --> 00:05:47,240 Now, here for the clinic, we have the address, the Yarraville, and we have the total number of patients, 91 00:05:47,240 --> 00:05:51,290 daily patients in these three is the actual size. 92 00:05:51,290 --> 00:05:54,380 So I have three the second one, three again, then one. 93 00:05:54,380 --> 00:06:03,410 Then to remember that we talk about that, the new data structure that allows you to create your own 94 00:06:04,190 --> 00:06:05,360 data inside. 95 00:06:05,360 --> 00:06:08,570 For example, you can have a string's you get as a key. 96 00:06:08,570 --> 00:06:13,850 I'm saying as a key, you can have a different data type and you can have a stream, you can have a 97 00:06:15,200 --> 00:06:15,770 numbers. 98 00:06:15,890 --> 00:06:17,480 You can have a boolean values. 99 00:06:17,750 --> 00:06:19,070 That's why I use the street. 100 00:06:19,440 --> 00:06:22,100 OK, now same goes for bar. 101 00:06:22,480 --> 00:06:27,010 Then after that, I create to function called clinical report, they will be empty at the beginning 102 00:06:27,340 --> 00:06:30,280 and the parking report there will be empty at the beginning. 103 00:06:30,610 --> 00:06:37,360 And I'm calling this function some passing data into those two functions, these two data here. 104 00:06:37,900 --> 00:06:41,770 If I'm calling colleagues with different name, the same here. 105 00:06:41,920 --> 00:06:49,120 So if he comes out of this clinic, it will contain this boy here if you call, because a lot of the 106 00:06:49,130 --> 00:06:51,880 markings, it will contain this part of you. 107 00:06:52,060 --> 00:06:57,010 OK, now you know how this is going to do is going to work. 108 00:06:57,730 --> 00:07:01,210 So I'm going straight to work to clinics. 109 00:07:02,920 --> 00:07:06,870 So create an instance of a new of the clinic glass like this. 110 00:07:06,880 --> 00:07:10,290 I'm going to use it later that I'm using constant patient. 111 00:07:10,660 --> 00:07:14,050 But this clinic is actually the data from here. 112 00:07:14,290 --> 00:07:18,670 So I'm going to use the map method to loop through all of them through the current element. 113 00:07:19,090 --> 00:07:25,690 And I'm just going to store it in a variable daily patients and that will give me this one hundred five 114 00:07:26,290 --> 00:07:28,150 hundred seventy two that will create. 115 00:07:30,040 --> 00:07:32,370 So if I do it like this, I'm going to show it to you. 116 00:07:32,680 --> 00:07:36,340 Now, if it comes a lot of patients 117 00:07:39,100 --> 00:07:43,210 now, I will have the number of all of the patients and you will see. 118 00:07:47,470 --> 00:07:54,210 Here is area four 105 one seven two three three six six, as I told you, they're coming from this one 119 00:07:54,210 --> 00:07:57,250 on five one seven to thirty three and six six. 120 00:07:57,430 --> 00:07:57,750 Cool. 121 00:07:57,880 --> 00:08:00,430 So what I'm going to do with this patient, so I do have them. 122 00:08:00,730 --> 00:08:06,580 This map method helped me to store it as an area and put it here because remember Map Method will always 123 00:08:06,580 --> 00:08:08,440 create a new every night. 124 00:08:08,710 --> 00:08:13,770 So clinic that called patient and I'm passing this part here. 125 00:08:14,200 --> 00:08:14,550 Good. 126 00:08:14,770 --> 00:08:17,080 This is the clinic from here. 127 00:08:17,500 --> 00:08:20,680 The instance it's not clinics don't get confused. 128 00:08:21,220 --> 00:08:21,580 Right. 129 00:08:21,820 --> 00:08:23,740 So passing this patients. 130 00:08:24,040 --> 00:08:26,260 So let's find where it is called patient is. 131 00:08:26,380 --> 00:08:35,960 So what you think because I'm calling it from the class clinic should be inside the class here is called 132 00:08:36,100 --> 00:08:36,550 patient. 133 00:08:36,730 --> 00:08:38,350 It's inside this class here. 134 00:08:38,530 --> 00:08:38,890 Right. 135 00:08:39,310 --> 00:08:41,410 So this class will take the data. 136 00:08:42,370 --> 00:08:47,440 I will create a very will collect the patients and that will be equal to zero. 137 00:08:47,860 --> 00:08:53,140 And I'm going to loop through each and every element here and why I use the element zero. 138 00:08:53,260 --> 00:09:00,760 OK, I'm just going comes along the entire element and you will see why. 139 00:09:04,880 --> 00:09:13,400 We're just going to refresh here, and I do have a area one only one element, and on the zero position, 140 00:09:13,670 --> 00:09:14,820 he's 105. 141 00:09:15,200 --> 00:09:17,480 So how do we grab that position? 142 00:09:17,570 --> 00:09:22,190 Well, simply, if you put in the element of zero, it will just grab the numbers. 143 00:09:24,720 --> 00:09:34,140 Here is right, so I can sum up all of the patients, so this is how we do that now, the connections 144 00:09:34,140 --> 00:09:38,150 block everything, how we find the average. 145 00:09:38,340 --> 00:09:43,040 So the average is what I have here after looping through all of this. 146 00:09:43,230 --> 00:09:49,920 So it will have like a 500 Rizzotto three hundred and something in then I'm going to divide by the Aeris 147 00:09:50,220 --> 00:09:51,850 length that I've passed in. 148 00:09:52,140 --> 00:09:53,640 So that's the length is zero. 149 00:09:53,670 --> 00:09:55,300 One, two, three, four. 150 00:09:55,440 --> 00:09:58,910 So I'm going to divide it by four and that will give me the average. 151 00:09:59,310 --> 00:10:09,240 Now the all of the patients is just here and income is if I multiply the number of patients by 50 and 152 00:10:09,240 --> 00:10:13,980 if I want an average income, I just grab this and put it down. 153 00:10:13,990 --> 00:10:14,500 Swiftie. 154 00:10:14,550 --> 00:10:21,870 Now, before when we use the template literals, I never show you that we can do a simple math operations 155 00:10:21,870 --> 00:10:22,150 here. 156 00:10:22,290 --> 00:10:28,740 Now you know how to do it, and that's why the result will bring me these four here. 157 00:10:30,660 --> 00:10:31,130 Cool. 158 00:10:31,620 --> 00:10:32,940 Now let's move on. 159 00:10:32,950 --> 00:10:34,230 I'm just going to get rid of this. 160 00:10:36,760 --> 00:10:38,050 In my I don't have it. 161 00:10:40,560 --> 00:10:43,870 OK, now I don't have it anymore, cool, just wait. 162 00:10:44,160 --> 00:10:48,120 I need to get this one because I'm going to have multiple errors now. 163 00:10:48,120 --> 00:10:50,100 I need to go five, six, seven and eight. 164 00:10:50,520 --> 00:10:50,880 Good. 165 00:10:51,030 --> 00:10:57,300 Now I need to go back to the clinic report and see what I'm doing for five, six, seven and eight. 166 00:10:57,660 --> 00:11:05,760 OK, I'm going to use the structure here, but first I'm going to use this map again and I'm going to 167 00:11:05,760 --> 00:11:11,160 go through all of these current elements and I'm just going to grab the euro build. 168 00:11:11,430 --> 00:11:14,970 Then I'm going to put here inside the constant years details. 169 00:11:15,120 --> 00:11:16,200 So if I cause a lot. 170 00:11:19,090 --> 00:11:27,400 Your details, I would expect to have two thousand, so this is one three with four values, so I get 171 00:11:27,400 --> 00:11:29,750 the index from zero until three, right. 172 00:11:29,910 --> 00:11:36,230 And these are coming from twenty six thousand nineteen twenty twenty two thousand sixty. 173 00:11:36,420 --> 00:11:37,650 Okey dokey. 174 00:11:38,410 --> 00:11:41,370 Now, there you have it. 175 00:11:41,590 --> 00:11:45,300 I'm feeling these three back to the get mean Max. 176 00:11:45,520 --> 00:11:48,480 So where I do this function, I'm not calling it with clinic. 177 00:11:49,290 --> 00:11:51,250 So what was my point then? 178 00:11:51,250 --> 00:11:55,510 I can we use this function later for the parks. 179 00:11:55,510 --> 00:11:55,970 But I'm not. 180 00:11:55,970 --> 00:11:56,290 I'm not. 181 00:11:56,620 --> 00:11:57,700 That will be your homework. 182 00:11:58,030 --> 00:12:10,630 And so that get me Max is actually function outside is outside both the cleaning and parking. 183 00:12:10,810 --> 00:12:11,140 Right. 184 00:12:11,260 --> 00:12:12,190 It's outside. 185 00:12:12,520 --> 00:12:15,780 So I can even put it inside, but I want to use it like this. 186 00:12:16,030 --> 00:12:23,920 So now that data or actually the area that I have here, I'm going to use the sprint operator, this 187 00:12:23,920 --> 00:12:31,120 map that mean it will actually, for example, I had four years here and it will spread it into four 188 00:12:31,120 --> 00:12:31,810 variables. 189 00:12:31,930 --> 00:12:38,410 And this means that that map don't mean it will go through that for variables and it will extract the 190 00:12:38,410 --> 00:12:41,470 minimum value and it will store it here back. 191 00:12:41,620 --> 00:12:42,760 The same goes for Max. 192 00:12:43,240 --> 00:12:49,990 The screen operator will spread those four years into four different variables and it will find the 193 00:12:49,990 --> 00:12:53,310 max that the value of those because they were numbers, right? 194 00:12:53,840 --> 00:12:59,010 Actually, it doesn't matter because they were numbers and it can store it back. 195 00:12:59,380 --> 00:13:05,580 So I'm returning an array of two these two values and that is good for the district tree. 196 00:13:06,090 --> 00:13:08,290 I remember how we use the destruction. 197 00:13:08,710 --> 00:13:15,490 Everything that we put on the left, we put two variables in the result from this is going to be attached 198 00:13:15,490 --> 00:13:16,360 to this variable. 199 00:13:16,510 --> 00:13:19,090 So that's why we can just print it out now. 200 00:13:19,180 --> 00:13:20,230 We can do the same thing. 201 00:13:21,610 --> 00:13:27,600 You can do the same thing for the smallest in the greatest number of patients. 202 00:13:27,790 --> 00:13:29,770 So I'm using the same function again. 203 00:13:30,310 --> 00:13:40,480 But instead of storing the years I'm putting here the clinic patients, I mean, I put this value here 204 00:13:41,080 --> 00:13:43,590 one oh five one seven two thirty three. 205 00:13:43,840 --> 00:13:48,880 So here the maximum will be one seven two and the median value will be three. 206 00:13:49,120 --> 00:13:49,960 Let's have a look. 207 00:13:51,250 --> 00:13:52,930 Here is the smallest number of patients. 208 00:13:52,930 --> 00:13:56,260 Thirty three and the largest one seven to cut. 209 00:13:56,860 --> 00:14:05,230 Now the last four is connected with that size variable that I've told you that we just put it to equal 210 00:14:05,230 --> 00:14:05,860 to two. 211 00:14:06,250 --> 00:14:11,920 For example, I'm doing clinics, all the data that I have on top. 212 00:14:12,190 --> 00:14:12,530 Right. 213 00:14:13,150 --> 00:14:16,540 And I'm doing a for each end with the error function. 214 00:14:16,900 --> 00:14:21,070 I am accessing the current element, this building classification. 215 00:14:21,120 --> 00:14:27,250 OK, so according to my belief, this was the best place to use maps. 216 00:14:28,720 --> 00:14:32,920 So we create a concept called clinic size and that will be equal to new empty map. 217 00:14:33,070 --> 00:14:36,730 And after that we set the map and we did one, two and three. 218 00:14:37,570 --> 00:14:40,600 So the one to set was two here. 219 00:14:41,020 --> 00:14:44,260 So if we don't specify a value. 220 00:14:47,450 --> 00:14:51,590 Where was here so three, three, one, two. 221 00:14:51,620 --> 00:14:59,450 So if we don't specify any value here in our data, then the default will kick in and it will immediately 222 00:14:59,450 --> 00:15:00,830 be two. 223 00:15:01,130 --> 00:15:02,210 That will be normal. 224 00:15:02,400 --> 00:15:02,720 Right. 225 00:15:02,990 --> 00:15:08,360 And I'm concerned about this address because I have the access to the super from the superclass. 226 00:15:08,360 --> 00:15:10,250 Right, was built in. 227 00:15:10,490 --> 00:15:14,180 Also, I have the access to the year in clinic site. 228 00:15:14,570 --> 00:15:19,780 I'm getting this that size actually the size here. 229 00:15:20,090 --> 00:15:26,300 So this size, it will not always be too, because I also have three three. 230 00:15:26,480 --> 00:15:27,510 One, two. 231 00:15:27,560 --> 00:15:28,400 OK, save it. 232 00:15:28,400 --> 00:15:34,010 Now go back here and it will say big clinic, big, small, normal. 233 00:15:34,490 --> 00:15:40,030 But look what happens if I don't specify the value here. 234 00:15:40,190 --> 00:15:43,220 That's why we learned about the fault parameters. 235 00:15:43,380 --> 00:15:47,150 So if I save it back, they all of them will be normal clinic. 236 00:15:47,150 --> 00:15:47,480 Right. 237 00:15:47,780 --> 00:15:48,620 Because this. 238 00:15:51,470 --> 00:15:53,630 The full parental will start kick in. 239 00:15:54,000 --> 00:16:01,660 Right, that's it, just going to go back, make it like this, we are done with the clinical reports. 240 00:16:01,780 --> 00:16:03,960 Now, let's do with a parking report. 241 00:16:04,250 --> 00:16:06,290 This has a little bit more calculation. 242 00:16:06,920 --> 00:16:10,970 And I add, as I told you, I didn't expect to do everything here. 243 00:16:10,970 --> 00:16:17,170 But, yeah, I just that's why we recorded the first lecture, because I need to put all of this here. 244 00:16:17,660 --> 00:16:21,130 OK, now I'm going to do with these Parkin's data. 245 00:16:21,140 --> 00:16:27,290 I'm going to map in I'm going to X into the current element with the Arrow function and I'm going to 246 00:16:27,290 --> 00:16:35,900 create an array with one, two, three, four, four different their values in there now stored in these 247 00:16:36,500 --> 00:16:37,250 parking data. 248 00:16:37,280 --> 00:16:45,380 So if I do plug working data, cool, here it is. 249 00:16:45,380 --> 00:16:53,450 I do have four areas and inside I have nineteen sixty three and these three is price it per hour and 250 00:16:53,450 --> 00:16:55,210 this nine is full day price. 251 00:16:55,340 --> 00:17:03,170 This 90 is actual full spot in these 60 is the hourly spot and the same goes for this, same goes for 252 00:17:03,170 --> 00:17:04,400 this, the same goes for this. 253 00:17:04,730 --> 00:17:07,730 You now have four arrays. 254 00:17:10,100 --> 00:17:16,460 So what I'm doing this, I'm creating this call function again outside the parking, we can just put 255 00:17:16,460 --> 00:17:19,230 it inside a parking because we never going to use it anywhere else. 256 00:17:19,910 --> 00:17:20,420 Here it is. 257 00:17:20,570 --> 00:17:28,400 So now your homework will be to put this function, if you want, inside parked here, because you can 258 00:17:28,400 --> 00:17:31,810 because this function will never be used by anybody else. 259 00:17:31,910 --> 00:17:34,380 But I just want to use it outside, OK? 260 00:17:34,820 --> 00:17:36,440 Now, where was it called? 261 00:17:36,470 --> 00:17:36,970 Here it is. 262 00:17:37,340 --> 00:17:40,990 I create a couple of variables in these variables. 263 00:17:41,000 --> 00:17:44,630 I initially initially declare and initialize in the same line. 264 00:17:44,780 --> 00:17:46,880 I think we haven't done this before now. 265 00:17:46,880 --> 00:17:47,740 It's a good idea. 266 00:17:48,530 --> 00:17:54,270 So I'm looking through all of the data and I'm storing for everything here. 267 00:17:54,530 --> 00:18:00,370 Now, this multiplication element of zero, I'm just going to tell you why I'm using element of zero. 268 00:18:00,980 --> 00:18:06,200 So if it comes a lot element now, you will see what will happen. 269 00:18:10,400 --> 00:18:12,920 Actually, I need to get rid of that one, so. 270 00:18:15,910 --> 00:18:26,920 And yet no element of zero, this is 90, this is about full parking, element of one will be 60. 271 00:18:27,160 --> 00:18:28,550 It's about hourly parking. 272 00:18:28,570 --> 00:18:29,660 That's why I can access it. 273 00:18:29,890 --> 00:18:31,860 That's why you need to store this here. 274 00:18:32,140 --> 00:18:40,360 The income is element of zero this year, 90 multiplied by nine in the nine is the element number three. 275 00:18:41,080 --> 00:18:41,440 Right. 276 00:18:41,830 --> 00:18:44,110 That's why I did the same goes for number one. 277 00:18:44,110 --> 00:18:47,980 And number two, I just want to multiply 60 times three. 278 00:18:48,370 --> 00:18:54,820 And after that I'm returning all this in. 279 00:18:55,210 --> 00:19:04,600 When I return this area, I can again use it, this restructuring method. 280 00:19:04,840 --> 00:19:12,790 But the restructuring will help me everything that I grab from this part to put it inside these variables. 281 00:19:12,910 --> 00:19:18,450 And I'm just pointing out that all of them, that's pretty much it. 282 00:19:19,000 --> 00:19:26,800 Now, the last part is we need to find which of the parking's have click. 283 00:19:27,520 --> 00:19:36,280 Should be parking here, has more than one hundred hourly or all the spots. 284 00:19:36,430 --> 00:19:40,660 Now, I'm just using just going to lot of this one. 285 00:19:40,660 --> 00:19:41,790 I'm just going to get rid of it. 286 00:19:43,240 --> 00:19:43,720 Good. 287 00:19:46,240 --> 00:19:46,600 Yeah. 288 00:19:46,630 --> 00:19:48,400 I don't have anything else let you see. 289 00:19:51,970 --> 00:19:54,450 By I will get rid of that as well. 290 00:19:54,920 --> 00:19:59,990 I think just put it here, we don't need this one anymore. 291 00:20:00,000 --> 00:20:01,300 I just wanted to make it clean. 292 00:20:01,700 --> 00:20:02,010 Good. 293 00:20:02,210 --> 00:20:03,950 Now, now where we are. 294 00:20:03,950 --> 00:20:04,520 Here it is. 295 00:20:04,520 --> 00:20:06,530 We are in this seven and eight. 296 00:20:07,040 --> 00:20:10,760 So finding which. 297 00:20:13,220 --> 00:20:20,690 Parking has more than one hundred hourly or all day spots. 298 00:20:20,810 --> 00:20:23,780 OK, so I'm going to use for the first time finding index. 299 00:20:24,200 --> 00:20:26,690 So indexer, that is going to be the constant. 300 00:20:27,050 --> 00:20:33,610 And I'm going to look through it again with a map method and I'm going to grab all of these four spots. 301 00:20:34,040 --> 00:20:38,450 So that will create an array of indexes. 302 00:20:38,750 --> 00:20:44,150 And I'm going to say find the index where the element is greater or equal to 100. 303 00:20:44,330 --> 00:20:52,280 Right now, when I know this index, I can especially grab the parking index, for example, if it's 304 00:20:52,340 --> 00:20:57,140 going to be zero and that has more or equal to a hundred. 305 00:20:57,140 --> 00:20:59,910 All the parking spots in the same goes for here. 306 00:21:00,200 --> 00:21:04,190 Now, I'm just going to tell you how it's going to work. 307 00:21:04,220 --> 00:21:05,300 OK, here it is. 308 00:21:07,490 --> 00:21:16,040 So we actually look for this value and this value, so ninety one hundred eighty one seventy six actually. 309 00:21:16,040 --> 00:21:16,330 Right. 310 00:21:16,730 --> 00:21:20,410 So which is the heart, which is the greatest number here. 311 00:21:20,690 --> 00:21:23,720 That will be the right street. 312 00:21:24,170 --> 00:21:24,560 Right. 313 00:21:24,710 --> 00:21:28,080 Because I'm just going to happy brightness. 314 00:21:28,080 --> 00:21:31,430 Speed for nine has more than an equal to 100. 315 00:21:31,430 --> 00:21:32,720 All the parking spots. 316 00:21:33,140 --> 00:21:33,360 Good. 317 00:21:33,770 --> 00:21:36,150 And the same goes for this value here. 318 00:21:36,350 --> 00:21:40,710 So this one looks a little bit off, right. 319 00:21:40,730 --> 00:21:45,190 Because I'm just going to save it like this in order to show you. 320 00:21:45,740 --> 00:21:47,290 So I'm looking for this. 321 00:21:47,300 --> 00:21:48,170 Don't worry about this. 322 00:21:48,170 --> 00:21:50,020 One hundred and fifty because it's something else. 323 00:21:50,510 --> 00:21:54,080 It's of the size now, which is the greatest year. 324 00:21:54,080 --> 00:21:57,260 Nineteen hundred eighty seven to six hundred. 325 00:21:57,920 --> 00:22:01,150 So that's why these Bridon Street is going to be picked up. 326 00:22:01,880 --> 00:22:02,260 Cool. 327 00:22:02,810 --> 00:22:05,350 The same goes for the hourly. 328 00:22:05,690 --> 00:22:07,790 Which one has a hundred or more. 329 00:22:08,000 --> 00:22:08,900 This one Dockland. 330 00:22:08,900 --> 00:22:10,400 So that's why it's going here. 331 00:22:11,780 --> 00:22:12,130 Good. 332 00:22:12,200 --> 00:22:15,290 Now if you don't understand some of the next three join me. 333 00:22:15,570 --> 00:22:17,660 You know we will do step by step. 334 00:22:17,660 --> 00:22:22,010 But if you're happy with the way I explain it to you, you don't have to. 335 00:22:22,220 --> 00:22:24,770 You're just going to graph. 336 00:22:25,130 --> 00:22:28,430 You can just grab the final one, tweak some things. 337 00:22:28,760 --> 00:22:31,300 If you have something in mind to change it. 338 00:22:31,490 --> 00:22:33,590 That's the out and practice. 339 00:22:33,800 --> 00:22:34,920 That is pretty much it. 340 00:22:35,210 --> 00:22:37,340 So I hope you enjoyed this. 341 00:22:38,180 --> 00:22:45,470 And this is something that I do because I want to save your time if you don't want to listen to me doing 342 00:22:45,470 --> 00:22:46,580 all the codings. 343 00:22:46,580 --> 00:22:46,870 Right. 344 00:22:47,090 --> 00:22:47,780 Thank you very much. 345 00:22:48,170 --> 00:22:54,080 But I hope that I'm going to see you in the next lecture where I explain how are we going to start with 346 00:22:54,080 --> 00:22:54,230 this? 347 00:22:54,590 --> 00:22:55,040 That's it. 348 00:22:55,070 --> 00:22:56,270 See you in the next one.