1 00:00:01,140 --> 00:00:09,120 Hello and welcome to the fierce example in the practical section and this floor charting course the 2 00:00:09,120 --> 00:00:12,890 first example will discuss student marks flowchart example. 3 00:00:13,680 --> 00:00:23,810 It's a program that's required to read your mark and to decide without your boss the exam or not pass 4 00:00:23,810 --> 00:00:25,160 mark is 60. 5 00:00:25,220 --> 00:00:27,440 So this is our condition. 6 00:00:27,500 --> 00:00:28,740 This is a simple example. 7 00:00:28,760 --> 00:00:35,070 We are starting with simple examples so that we can let you know how to do this. 8 00:00:35,150 --> 00:00:41,170 Step by step manner then we are going to move to more complex examples. 9 00:00:41,240 --> 00:00:49,150 So what should we do to solve this program or solve this issue or to draw the flowchart 10 00:00:53,260 --> 00:00:57,850 the first step will be creating a new flowchart 11 00:01:01,890 --> 00:01:10,720 create a new diagram then click on create to solve this problem. 12 00:01:10,870 --> 00:01:11,950 We do the following. 13 00:01:11,950 --> 00:01:17,560 First we must read the input data so into the data. 14 00:01:17,560 --> 00:01:27,750 Second we need to make a comparison of the entire or of the in the mark that the use of the into finally 15 00:01:27,840 --> 00:01:35,540 we must plan that isn't so let's start doing this. 16 00:01:35,740 --> 00:01:40,900 I already mentioned that we are going to use a symbol for start and stop. 17 00:01:41,010 --> 00:01:44,000 It's a rectangle bar tab round edges. 18 00:01:44,230 --> 00:01:48,580 So as you can see this can work for us. 19 00:01:48,730 --> 00:01:56,900 We need to add to the first one will be the top and the second one will be at the bottom. 20 00:01:56,920 --> 00:02:05,320 Let's zoom in inside that we are going to light start indicating that the program's starting 21 00:02:09,280 --> 00:02:11,050 and here we are going to write. 22 00:02:11,050 --> 00:02:15,090 END. 23 00:02:15,220 --> 00:02:23,530 Now let's go back here now the second step will be reading the input Mark. 24 00:02:24,290 --> 00:02:32,760 We can do this by simply read the import Mark. 25 00:02:32,780 --> 00:02:37,280 So in order to read we are going to use this symbol here. 26 00:02:38,510 --> 00:02:50,220 And let's write read and bookmark now after reading the input Mark we need to compare it and to check 27 00:02:50,940 --> 00:02:53,860 if it is above 60 or not. 28 00:02:53,880 --> 00:02:56,940 If he has the user will pass. 29 00:02:57,000 --> 00:02:58,650 If not you will fail. 30 00:02:59,310 --> 00:03:07,680 So let's playing the decision making symbol from the flowchart thing area. 31 00:03:07,710 --> 00:03:08,430 This is it. 32 00:03:14,660 --> 00:03:15,240 OK. 33 00:03:15,300 --> 00:03:24,860 Now mark above 60 this will have two options. 34 00:03:25,000 --> 00:03:39,320 As you can see either yes or no so it is no we want to write the world bars in a variable let's call 35 00:03:39,320 --> 00:03:40,010 it result. 36 00:03:40,640 --> 00:03:48,120 So let's drag an item which is a rectangle. 37 00:03:48,130 --> 00:03:53,770 Whereas is it qu. 38 00:03:53,990 --> 00:03:56,530 Let's take it from here. 39 00:03:56,560 --> 00:04:01,120 This is the rectangle the first rectangle and this is the second rectangle 40 00:04:05,710 --> 00:04:07,900 the first one is here. 41 00:04:07,900 --> 00:04:17,290 Second one's here we can reduce the size of that rectangle. 42 00:04:17,380 --> 00:04:17,850 No no. 43 00:04:17,850 --> 00:04:19,450 That connect this item with this 44 00:04:23,480 --> 00:04:26,030 we can do this and we can do this. 45 00:04:26,030 --> 00:04:27,890 Now if yes 46 00:04:31,440 --> 00:04:43,280 result will equal pass if no result will equal fail. 47 00:04:44,020 --> 00:04:56,140 Now we cannot dictate to you 16 to here if yes here if no. 48 00:04:56,150 --> 00:05:02,520 So if Mark is above 60 the result will equal pass if no result will equal fail. 49 00:05:02,680 --> 00:05:10,870 Now in both scenarios we are going to plan the results so both of these and all of us would print the 50 00:05:10,870 --> 00:05:11,260 result. 51 00:05:11,260 --> 00:05:19,070 We are going to use the input output on the right to print the result. 52 00:05:19,160 --> 00:05:23,800 Now what we can do next is simply 53 00:05:27,170 --> 00:05:30,350 draw the arrows the flow lines 54 00:05:33,250 --> 00:05:41,100 no as you can see this will go to fail. 55 00:05:41,340 --> 00:05:43,080 The after printing the result. 56 00:05:43,100 --> 00:05:48,410 We are going to end the program while it is boss. 57 00:05:48,570 --> 00:05:53,220 We are going to do the same which is printing the result. 58 00:06:02,110 --> 00:06:08,260 As you can see now if yes the result will be pass. 59 00:06:08,260 --> 00:06:12,900 If no will be fail now that's it. 60 00:06:12,900 --> 00:06:13,740 This is our 61 00:06:17,980 --> 00:06:21,010 flowchart start. 62 00:06:21,060 --> 00:06:22,170 We will take them off. 63 00:06:22,260 --> 00:06:23,880 Check if it is above 60. 64 00:06:23,880 --> 00:06:27,060 If yes the IS will be pass no. 65 00:06:27,090 --> 00:06:28,600 The result will be fail. 66 00:06:28,680 --> 00:06:34,590 Then we are going to print the result and then we use the same shapes that we mentioned in the previous 67 00:06:34,590 --> 00:06:38,950 lesson which is commonly used chips in a floor charting. 68 00:06:39,120 --> 00:06:43,540 This shape is for start and stop the task. 69 00:06:43,680 --> 00:06:47,590 This is for taking input and displaying output. 70 00:06:47,910 --> 00:06:49,680 The rectangle is for processing. 71 00:06:49,680 --> 00:06:54,720 We are pressing the value of pass and storing it in the result variable. 72 00:06:54,720 --> 00:06:57,320 This is for decision making. 73 00:06:57,460 --> 00:06:58,230 This. 74 00:06:58,350 --> 00:07:01,180 These are the floor lines. 75 00:07:01,680 --> 00:07:02,710 So this is it. 76 00:07:02,820 --> 00:07:04,950 We can change the coloring. 77 00:07:04,950 --> 00:07:10,020 As you can see here to make sure that each element has its own coloring. 78 00:07:10,020 --> 00:07:16,740 If you are making a very large flowchart coloring will be helpful because it will show you exactly what 79 00:07:16,740 --> 00:07:17,340 are the inputs. 80 00:07:17,340 --> 00:07:21,760 So let's say that we are adding all of these in green. 81 00:07:21,930 --> 00:07:29,460 We are going to know from the color that these are input output blocks and these are processing blocks 82 00:07:29,550 --> 00:07:31,500 from the color of their color. 83 00:07:32,640 --> 00:07:37,160 So carding will be very helpful in tracking our design. 84 00:07:37,170 --> 00:07:42,480 You can't change the baobab size to be F4 if you want to print it as you can see. 85 00:07:42,570 --> 00:07:43,930 This is therefore size. 86 00:07:43,980 --> 00:07:48,840 This is our print size. 87 00:07:48,880 --> 00:07:51,210 This is our first flowchart. 88 00:07:51,250 --> 00:08:04,560 Now let's save it file save as and let's save it and our course folder. 89 00:08:04,750 --> 00:08:06,850 Let's see. 90 00:08:09,620 --> 00:08:13,290 In here and let's call it student 91 00:08:15,840 --> 00:08:18,250 Mark check. 92 00:08:18,360 --> 00:08:23,680 Now again if you want to save it and GBC you can export it as easy image 93 00:08:27,010 --> 00:08:33,570 export to the same for a lot. 94 00:08:33,710 --> 00:08:35,830 Let me show you does it really emerge. 95 00:08:39,990 --> 00:08:40,470 This is it. 96 00:08:40,470 --> 00:08:42,540 This is our flow chart. 97 00:08:42,930 --> 00:08:47,460 You can choose to export it and be the f or other formats as well. 98 00:08:47,580 --> 00:08:51,760 That's it for the first example and floor charting. 99 00:08:51,780 --> 00:09:00,780 Next we are going to make another example which is more practical example on the more or a bit complex 100 00:09:00,780 --> 00:09:01,410 example. 101 00:09:01,410 --> 00:09:04,350 We are taking it a step by step. 102 00:09:04,350 --> 00:09:08,250 If you have any question regarding this flowchart please ask and that you aren't able. 103 00:09:08,880 --> 00:09:10,530 I'm more than happy to help. 104 00:09:10,530 --> 00:09:12,830 Thanks for watching this lesson. 105 00:09:12,840 --> 00:09:13,640 See you next. 106 00:09:13,650 --> 00:09:15,150 This is Coding Academy.