11:31:19 Alright, I'm gonna go overflow charts and How to do a simple flowchart. 11:31:27 So basically what we need to know for flowcharting is that we have We will always have a start. 11:31:35 And we will always have a stop. The second thing that we need is if we're gonna import any libraries we're gonna declare I'm at the beginning so we're gonna declare our imports And then we make our storage space here. 11:31:56 So this is where we declare our variables, whatever variables we're gonna need. And then finally, this is where a program goes right here. 11:32:06 So in our program, we're just gonna keep it very basic. Very simple. We have a process box. 11:32:13 A decision and a display. So process box, I like to think of it as a where the math formulas go. 11:32:21 So it's 2 plus 2 equals and then you put that solution inside a variable. Our decisions are if if else statements and then Notice that the else And, if else statement. 11:32:39 Is only the false French. So then if you're looking at a false of an if statement. This would be our false French. 11:32:48 So that's the else. So else doesn't get a a box from these things. 11:32:55 And then our display, which is our system outprint statement which is a parallelogram. So that's usually when you put a system out print statement out. 11:33:07 So then let's get started with a real quick. Flow chart that we could do. So create a flow chart that will lit. 11:33:15 User input their name and then allow them to pick a letter index from 0 to the length of the name minus one. 11:33:22 So if my name is Edwin, which it is. This is 0 1 2 3 4 so the length of my name is 5 11:33:36 Okay. But the index of the last letter is . 5 minus one which is for. So this is a very, basic computer science concept there. 11:33:51 So the flow chart will let them know if the letter they picked is from the first half of the alphabet or not. 11:33:59 Okay, so We're gonna go ahead and start with flowcharts. So the first thing that we need per flow chart is gonna be start. 11:34:09 And then. Since we're gonna get user input. Input. And port scanner, right, import. 11:34:20 Yeah. 11:34:23 Scanner And then after we import the scanner, we need to have our storage space. So this is where we're going to declare our variables. 11:34:35 To clear. Right. So then from the gecko we know that we're gonna use a user input. 11:34:49 And we're gonna set it to a empty string. 11:34:54 So, here's another thing that since we're not programming anything, we could just assume that this is gonna be, a string but that's the beauty of flowcharting. 11:35:09 You're just Kinda getting an idea of what you're gonna do before you start writing your program. 11:35:16 So now we're going to need the length of the name, right? So we're going to say length. 11:35:22 Of name. 11:35:25 We're not gonna we're gonna initialize it but not set it to anything And then. I believe and we could just go with William. 11:35:36 Is in. 11:35:45 . And First. 11:35:52 And we'll set it to. True. 11:35:59 Then like I said, I could. Put the data types here, so string. 11:36:08 8. Go in. Alright. 11:36:18 Then, the first thing that we're gonna have to get is the users name right so whatever your name so we're gonna do a system out print statement which is a parallelogram. 11:36:33 And, system out. 11:36:38 Just system upprint. This is, this is short, first, and we're gonna ask the user what is your name? 11:36:58 Okay, we forgot to initialize our our scanner. Sorry, I say, KBD. 11:37:08 Equals new scanner. 11:37:14 Of course, this is not the proper way. Too much less scanner, but it is a full chart. 11:37:23 So once you start programming it, you're gonna be like, alright. How to initialize the scanner now. 11:37:30 But the idea of the flow chart is to. 11:37:33 Think about what you're gonna do with the program before you start writing the program. So then over here. 11:37:41 Since it's a prompt. And then we got a store that information. So we also need a parallelogram here. 11:37:51 And we're gonna say the input. 11:37:55 The user input, which is our variable. And put is gonna equal to KVD. Next. Alright, something like this, right? 11:38:11 So now, so now let's say I put my name in here. 11:38:17 So now this line. 11:38:21 Is gonna put the string Edwin. Inside user input. So now. Let's make our 11:38:35 Variables. Box. 11:38:41 We're gonna say user. Input now equals 2, add one. 11:38:53 Right. So then what's the first process that we got? Figure out. After we get the name. 11:39:02 We gotta figure out how How long is the name? 11:39:07 How long is user input? So how long is my name? So then this is where we utilize the process box. 11:39:17 So we're gonna say. 11:39:20 Linked of name. LinkedIn. Equals 11:39:28 So length. 11:39:31 Of need. Equals. User input, right? This is where my name stored at. 11:39:42 So it's gonna user input that length. 11:39:46 User input. 11:39:50 . And this is the 11:39:55 Method the string method so that So now the length of name. 11:40:02 Thanks. 11:40:07 Okay, name variable. Is gonna equal to 5. So notice how It's a integer and I had a stream like my name. 11:40:19 Alright, so that's the first process box. So then let's go back to our problem, see what it asks, and now we gotta pick. 11:40:29 Index from our from 0 to 4 because that's the length of my name. So notice how we don't have a variable here. 11:40:48 That is gonna tell me the length of my name. So we could, that's why you make the storage space bigger because you might need more variables. 11:40:57 So we're gonna say. 11:41:05 Let's see here, like name. So we could just say. You, you, do, you, do, you, do, you, do, you, have, you. 11:41:14 Actually, we're gonna say. We could say, Yeah, we'll do, we'll go and. 11:41:22 And so it's gonna be int. And then and then we're gonna system out print. 11:41:32 So it's another display. 11:41:36 And we're gonna say system out. 11:41:41 Our system upprint. 11:41:44 Just, yeah. System outprint. 11:41:56 A number 11:42:04 0, 2. 11:42:10 And then we're gonna say length of name minus one. Right. Links. 11:42:20 Length of name minus one 11:42:30 Okay. Right, so we're gonna pick. Pick a number from the length of our name minus one. 11:42:38 So from 0 to 4. And then we're gonna stores that number in N. So now, does this prompt? 11:42:47 And then we got store. And we're gonna store it in. And n equals KBD. 11:42:58 Dot Okay. KB. Great. Oh, To now, let's say I pick. 11:43:16 . 2 So now we're gonna say n equals 2 and equals to 2. 11:43:28 So which now and corresponds to the letter W, right? So then we got. My name or. 11:43:43 We have an array of letters, right? Which is gonna be my name. One, never know how to do these. 11:43:53 That's 4. 1, 2, 3. So now we have this letter here. 11:44:03 So this is 0 1 2 3 4 and now we're saying n equals 2 so then the the letter in our name that we're looking at is gonna be W. 11:44:17 So that this is where the. The decision tree comes in place, right? And we're not going to use ask you values or anything. 11:44:25 We're just gonna save. It's gonna be a simple if statement. Yes. Letter, right? 11:44:35 If. 11:44:43 User. Input. Character That and. And then we'll just write it in English, right? 11:44:56 Is greater. 11:44:59 Then. I believe M is the middle so greater than M greater than letter M. We're just gonna do a system outprint statement. 11:45:18 . So, SOP. Later. 11:45:30 Is in second half. 1 s. 11:45:37 Second. 11:45:43 That's parallelogram. And then make sure that you write your True here. So T for true. 11:45:52 Sure. So that's your true statement. If not 11:46:00 We're gonna system out print. 11:46:03 Just a moment. 11:46:06 Better. Yes. Per sec. 11:46:16 Of the and this is our false. So you can only go true or false. Then at the end of it We're just gonna both go. 11:46:31 To the end. 11:46:35 And we're gonna stop. 11:46:43 So now to follow the flow of things. We started here. Imported our scanner. Created the variables that we needed. 11:46:59 And then this is from here on out. This is the body of our program. You know, what is your name? 11:47:07 Get the name. The length of the name, we calculated that. 11:47:15 And then we asked the user, a pick a number from. 0 2 the length of the your name minus one right because The length of the name is 5, but the last index of my Name is 4. 11:47:32 And then we start that variable. Inside. And. And then we ask the if question, right? 11:47:44 We're asking it, is the character at and which in this case was index. 2. Index 2. 11:47:55 Is a greater than M and we were gonna say true. So then we're gonna say the letter is in the second half and we stop our program. 11:48:04 This is very basic program. There's no. Phone checks so I could in reality put. 11:48:14 You know, I could put 10 and then this would break my program. So. There's no. 11:48:23 There's no way to confirm that. The information I'm putting in as a user. 11:48:29 Get checked if there's any errors with the information. So yes, this is a very simple. Flow chart problem. 11:48:39 And then it's a good, wait to start programming. Anything really. Alright. 11:48:49 Thank you.