 Alright, so let's say that if you want to write a program to determine the number of floors in a building, for example, how would you write a flow chart to do something like that. And we'll make some rules that, you know, in order to go up the stairs or down the stairs as a matter, is that you would, there must be a staircase. Okay. So there's a staircase. And so you can walk the staircase to determine how many floors that building pass. Okay. So, for example, I'm going to go here and to a flow chart so you can see the culture here is it a symbol here. It's just kind of tiny but it's a determinator. They put here like that. And then inside here you put scope. Right. I don't know it's not center but I think it matters. And so we're here going to put another copy and paste, maybe down here you have what this is, and stop or end. So when you run the program. I'm going to create an input, right so you. What is the input in this case. Let's say that the input is we. Well, yeah, I'll make it so that that's meant to make a lot of sense, but let's see. But put here. Okay, so input has its shape. You can say, now, let's let's just, you know, we're going to do a process here. So here we enter building. Okay. That's that's one step. Let's say we're going through a door. What should be the next step. What do you think. Yeah, let's just say we start at the very bottom, and we'll go up to the top of the building determine how many sports we have. So we enter the building now. So what is the next thing we should do. Yeah, well, yeah, the stairs right. So you want to check if there is a staircase or not. Right. If there's no stairs to what it's a tell us. Okay, so we can check the stairs. We do that by using the diamond shape here like this. Okay, like that. And you can say has stairs. We'll just say as soon as there's always go up. Does have stairs, right. So here, and then we draw the arrows. Let's see arrows to draw arrows from here. To here. Okay, always in that direction, the direction of data. From here we enter the building after that we check for the stairs. Okay. Does have stairs or not. And then the right side is no. And the left side is, or the left side is no right side. Yes, let's say there is no stairs. Then we can output. Let me move this living down here. There are no stairs. So that's like the edge case, right. It's no stairs and we're done. Okay, so here then I'll put output here. Copy this right down here. Yeah, well, let's use it. Let's use this symbol. This is for display output here. Okay, so display. This is the output here. So we're going to get to this anyway at the end. So then the arrow again goes here. I know this going to go down to the stuff we enter. Now, when we has stairs or now we're going to go and then I'll use this current connector here. I can do here or here doesn't matter. And just nice to put here like that and go like that or like this doesn't matter. As long as the arrow makes sense. Okay. And usually this another way. This nice they can do like this. Make it look like that. And then make it kind of nice like this. Oops. Okay, so one way out. And then if there's no stairs and display number of floors. As you can see at build as I go. Okay. I had to find a way to track the number of floors. I'm not sure if you should have to need to count the number of floors as you go. So then you have to put some text here as well. This is the no part. Okay. And then it's yes, that is the other direction. So if there's more, more, more stairs. Then what should happen. If you found a stair, right? We're going to climb up the stairs, right? You come upstairs. So I should come up the next is what should happen. Okay, you go up, right? If you go up the next is you go out next again. So as you go up every stair, every step, you need to count the number of floors to go, right? You need to keep track of that. Okay. So in this case, there's no more for him go and which one done. And there's a stair, then we need to say, well, I need to process something. So put here, the process this diamond, this shape here. I'm going to put here. You know, and add something. Yeah, that's all right. Oh, yeah, counter something for that floor. We add the floor number. And after that, let's put it right here. So I'm going to draw the arrow from here to this symbol. And it's going to be this arrow what they can only hear late. Nope. With the end. This one here. Yeah, like that. And they again, put that thing here, say yes. Okay, so you need to know which is yes, we just know if you don't put it, how do I know which way, which way to get to just now. We yes and I put true or false. It doesn't matter as long as the one they get together. Okay. We add the floor, or you increase the floor number. And then after that what happens. Yeah, whole process starts again right. So we're not going to say has there's again, boys already here. So what you do is in this point, we're going to draw an arrow either here over here doesn't matter. We go back out to somewhere over here. Okay, and the arrow points to that. Why am I there. Okay, so it repeats itself. So we into the building. Is there any stairs. No, we're done. And what the first rule. And then yes, and we add the full number, you count that number. And then we check if there's stairs or not. Yes, there is. Yeah, from that point on. Again, the same thing. If it is another stairs. I want to get now to three or four that's better. And then once we're done, it's going to exit out. By the time the number of floors will be already added as you move up the building. Now, with this in mind that you say, okay, well, I have to find a way to store this for number. So you can do a separate icon here if you want. Enter the building. Okay, and you can just put writing all together it's fine to you can say. The first floor is equal to one by default. Right. The default is always one. That's the first floor already. So if you go here, and then has has there's no, then display display floor. So whatever floor is, it's going to be one. If it has stairs, then that means there must be another level. So therefore, we can say floor is equal to four plus one. Right, because it was one here, but add a one to the floor so now flow is to. Okay. So this has been created already, when we reach this place. So we incremented by one, and then we check to see this another floor step from this note. Then we can say oh no more printed out what is now already to we found out has to. Okay, so something simple like that you see put to a flow chart. You can easily see how things occur in the sequential water. Okay. So that's just one example, how you can put this into code. All right, so your assignments will be kind of similar to what we just did to to, you know, I didn't use sort of code here but you can basically convert this into sort of code. So how would you do this in pseudocode, you buy the pseudocode is sequential steps again, you say enter the building set or go to one doesn't have a stairs. If yes, then have four to one floor, and then check and then repeat something like the other wise, I just display the total floor and then you would die. Right. This way how you would process how you read this chart, same idea. So make sure you're able to, you know, convert between the flow chart to pseudocode and back and forth. And both ways. Yes, question. Right now. Yeah, you can draw it out using pencil paper. You can use the whole shot of the picture and upload it, or you can use a program like Google draw or any other program you use out there there's a lot of tools out there you can use on online as well. Like, I have a list and I think can be blackboard as well. Like lose a chart and many other smart roles or whatever. So I'm not too critical about what sort of made. I'm more interested in. And how you're able to draw these out and so so just make sure you know how to use it, draw it out and put this in the direct correct order and name your icon this way. Also notice that will you notice I did not. I did not do this. Right. I did not put the arrow right here. Oh, yeah, this is okay. I want to show was if I leave up if I move this down. So let's say if I move this down here. Okay, so I'll show you something that you should not do. So that's the yes and this is the yes part here. So it doesn't matter which one of you comes out. Okay, that's always one of the corners is fine. Now, what you don't want to do is, you don't want to say this is going to go right in here. Okay. So this is not good. I mentioned earlier that this diamond shape, you see only one input. Okay, now it has two inputs, so it's not correct. So we do it this way. Just make sure that you always have my input if you have two or three or four lines coming to this diamond shape. Yeah, it's possible that you might have other programs around here, and it might have to go back and check the stairs. But as a case, then your arrow must be pointing to the line that was already pointing to this shape. Okay, so I know that there's only one entry point to that diamond shape. Okay, either directly to the arrow like this, or if you do this, then it will connect that to the same line. And again, that would still be fine. So one entry point to output here. Sometimes you may not see this at all. Sometimes it may leave that out, but it doesn't mean that there's no output here. It just means it's empty.