1 00:00:02,100 --> 00:00:07,660 Now, let's move to the quick demo on the topics which we have covered right now. 2 00:00:08,070 --> 00:00:10,000 So let's move to that memo. 3 00:00:10,050 --> 00:00:13,500 This particular topic regarding which we have covered. 4 00:00:16,060 --> 00:00:24,000 So here is the visual studio code where we are actually having all that, all the important programs 5 00:00:24,010 --> 00:00:31,090 on, I have already explained to you how to install this, how to set up this in your system and how 6 00:00:31,090 --> 00:00:33,340 to start running the programs. 7 00:00:33,520 --> 00:00:41,180 So we can start with the first lesson or the first demo session of this class, which is actually showing 8 00:00:41,180 --> 00:00:43,500 your program to find the area of this. 9 00:00:44,470 --> 00:00:47,080 So why does things you need to identify? 10 00:00:47,170 --> 00:00:51,760 So you do create a program to find a area office certificate. 11 00:00:52,030 --> 00:00:56,000 You have to first think of what are the processes? 12 00:00:56,020 --> 00:01:01,000 What are the variables required to create that or find a circle? 13 00:01:01,540 --> 00:01:07,750 Here again, see, I need radius in order to calculate the area of this output. 14 00:01:08,320 --> 00:01:13,210 Then I need to declare a variable to store that area. 15 00:01:13,450 --> 00:01:13,750 Right? 16 00:01:13,900 --> 00:01:20,600 So timing is ah, because the area I have in the currently two things mainly is areas and then the constant 17 00:01:20,600 --> 00:01:28,060 fight because we know the formula for computing areas by hard square, right? 18 00:01:28,360 --> 00:01:34,750 So to find a area for something which we use the formula in mathematics by square. 19 00:01:34,960 --> 00:01:38,860 So by adding flat out of means various is a constant. 20 00:01:39,010 --> 00:01:43,210 And square is the multiplication of radius stripes, right? 21 00:01:43,450 --> 00:01:50,410 So I will declare a one variable for radius and so be what we get from this execution. 22 00:01:50,560 --> 00:01:54,160 We will be getting area so bias square equal to the area. 23 00:01:54,280 --> 00:01:55,750 That's that in the same. 24 00:01:55,900 --> 00:01:59,080 So I need to store this area in somewhere. 25 00:01:59,170 --> 00:02:00,580 So I need to create one more. 26 00:02:01,210 --> 00:02:03,490 So here you can see the declaration. 27 00:02:03,820 --> 00:02:12,580 So the declaration integer is that various data type because I am always using radius as integer data. 28 00:02:14,250 --> 00:02:21,030 So like, I am not planning to give 5.5 as in potentially planning to keep fighting mass input, so 29 00:02:21,030 --> 00:02:24,070 I am using various media in. 30 00:02:24,780 --> 00:02:27,150 Similarly, I want to calculate the area anyway. 31 00:02:27,390 --> 00:02:31,650 Most of probably the area of a circle will be in decimal number. 32 00:02:31,650 --> 00:02:39,870 So that's why I am using floating point are flawed data because the area should be decimal and my area 33 00:02:39,870 --> 00:02:44,700 variable should be able to store that decimal value. 34 00:02:45,150 --> 00:02:49,680 So I am using floor to define my variable area. 35 00:02:51,430 --> 00:02:56,620 No, I have a constant fight or two three pointer. 36 00:02:57,190 --> 00:03:06,040 So while this is a constant because like bay is always a constant value, its value never changes. 37 00:03:06,190 --> 00:03:10,180 So I have declared floored by all three points. 38 00:03:10,270 --> 00:03:10,950 One for here. 39 00:03:10,960 --> 00:03:17,330 You going to see the Gonski word in the beginning, which means this variable by cannot be changed throughout 40 00:03:17,350 --> 00:03:18,220 the program. 41 00:03:18,220 --> 00:03:21,690 It values always remain, says three point one four. 42 00:03:22,330 --> 00:03:24,880 So remaining steps you can self understand. 43 00:03:25,630 --> 00:03:28,210 Here I am asking the radius of this outbreak. 44 00:03:28,540 --> 00:03:33,040 Then it will be printing the statement because this is a code statement. 45 00:03:33,280 --> 00:03:34,810 We have covered that already. 46 00:03:35,140 --> 00:03:42,400 Then we are entering that value using C in statement, which is actually asking for the radius. 47 00:03:42,640 --> 00:03:51,250 So C in various, then I am asking then I am trying to find out the area that support using the formula 48 00:03:51,250 --> 00:03:52,080 based there. 49 00:03:52,240 --> 00:03:59,020 So how we are writing that bias, that expression here area is the variable rate equal to byte, which 50 00:03:59,020 --> 00:04:01,590 is our constant 3.9 for endo. 51 00:04:01,810 --> 00:04:11,140 And so here I have already told you, like X will not work as multiplication, so we have to use star 52 00:04:12,280 --> 00:04:15,370 symbol at Multiply Operator. 53 00:04:21,750 --> 00:04:25,380 So yet again, see stories you as bad as the multiplayer operator. 54 00:04:25,590 --> 00:04:33,210 So we are calculating areas buying new radius and new videos, which is by square, then I am finding 55 00:04:33,210 --> 00:04:37,920 that area and ending the program using a return zero statement. 56 00:04:38,250 --> 00:04:40,260 Now let's execute this program. 57 00:04:40,500 --> 00:04:43,540 So in order to execute this program, I need to. 58 00:04:43,560 --> 00:04:46,590 Before that, I need to compile this program, right? 59 00:04:48,360 --> 00:04:49,140 Sorry for that. 60 00:04:49,380 --> 00:04:51,880 So I need to compile that program, right? 61 00:04:51,900 --> 00:04:54,660 So I am going to clear the air domain. 62 00:04:55,530 --> 00:04:57,810 Now I am going to compile the program. 63 00:04:57,930 --> 00:05:02,280 So what is a way to compile the program in my system? 64 00:05:02,730 --> 00:05:06,810 I can use C++, followed by the file name, right? 65 00:05:07,080 --> 00:05:15,150 Finally, we might as well find Sakai Area Dot CPB. 66 00:05:16,920 --> 00:05:18,240 Now pressing and. 67 00:05:19,880 --> 00:05:20,810 Well, I have. 68 00:05:23,070 --> 00:05:29,610 At some sort of mistake on my spelling or something because this program is not running. 69 00:05:31,520 --> 00:05:32,500 Let me try again. 70 00:05:32,960 --> 00:05:42,020 C++, which is the way to compile the program, I have already explained why this compilation find. 71 00:05:44,330 --> 00:05:45,560 So, Chris. 72 00:05:49,320 --> 00:05:49,980 The. 73 00:05:53,380 --> 00:05:56,010 Dart, CPB and yeah. 74 00:05:57,050 --> 00:05:57,550 Sexist. 75 00:05:57,980 --> 00:06:01,460 So there is no error declare no Russian yet. 76 00:06:01,700 --> 00:06:05,120 This means that my program is successfully compiled. 77 00:06:05,330 --> 00:06:07,130 No, I need to run this program. 78 00:06:07,370 --> 00:06:09,830 So for that, what will I do? 79 00:06:10,010 --> 00:06:15,650 I will use another command go DOD slash in or out running that. 80 00:06:16,570 --> 00:06:22,730 See, now the program is asking me for the radius of the circuit, so I giving that radius. 81 00:06:23,350 --> 00:06:28,610 And so you can see here three one four is that area. 82 00:06:28,660 --> 00:06:35,620 So one one issue against the area that just slips in is over here and here. 83 00:06:35,890 --> 00:06:39,550 So that's a mistake because this lesion is not the right slash. 84 00:06:39,790 --> 00:06:41,550 We have used the wrong slash. 85 00:06:41,560 --> 00:06:43,810 That's where the value is not coming properly. 86 00:06:43,810 --> 00:06:46,770 So this is this large, you should use backslash. 87 00:06:48,070 --> 00:06:50,380 Now let's see this program again. 88 00:06:50,380 --> 00:06:54,620 So maybe admission slashing to move down to the next lane. 89 00:06:54,640 --> 00:06:57,020 That's why we are using this lesson, right? 90 00:06:57,020 --> 00:07:05,710 We are using this lady to give some space in between the two of I do things, this area and the value 91 00:07:05,710 --> 00:07:06,290 of the area. 92 00:07:06,340 --> 00:07:07,660 That's why we hadn't seen that. 93 00:07:08,830 --> 00:07:10,300 So let's do that again. 94 00:07:12,160 --> 00:07:13,900 We need to Gambella program again. 95 00:07:13,900 --> 00:07:20,050 So I am compiling it again, using it because whenever you make changes on your program, you need to 96 00:07:20,050 --> 00:07:22,180 compare that to get the latest output. 97 00:07:22,420 --> 00:07:24,640 Then I'm using that slash in or out. 98 00:07:24,860 --> 00:07:28,710 No, I can see the radius of the circle that should be under. 99 00:07:28,960 --> 00:07:31,570 I'm giving 10 and I am pressing into. 100 00:07:31,810 --> 00:07:37,300 So now you can see it just leaving one line below and it just displaying area. 101 00:07:37,510 --> 00:07:39,700 Then it's leaving some space, right? 102 00:07:39,970 --> 00:07:43,030 Three point one for that is some space over here. 103 00:07:43,240 --> 00:07:48,420 And then really, it's actually getting out of that program. 104 00:07:48,430 --> 00:07:56,800 So it's having it back space by using Slashdot, and it's actually displaying that really the area correctly, 105 00:07:56,810 --> 00:08:03,430 you can know, like bending to trade binary for that in lieu of bank. 106 00:08:03,670 --> 00:08:03,940 Right? 107 00:08:04,480 --> 00:08:05,450 So 10 squared. 108 00:08:05,450 --> 00:08:08,140 And the three point for that is three one four. 109 00:08:08,140 --> 00:08:10,430 Is that area on that circle? 110 00:08:10,630 --> 00:08:16,270 So have you got this program's idea so we can move to that next setting?