1 00:00:01,260 --> 00:00:02,070 Welcome back, my friend. 2 00:00:02,100 --> 00:00:03,650 Welcome to another lecture today. 3 00:00:03,660 --> 00:00:09,420 You're going to learn you're not going to learn anything new, but you need to do an assignment in that 4 00:00:09,420 --> 00:00:13,550 is coding assignment to cover some of the things that we learned so far. 5 00:00:13,560 --> 00:00:17,630 So you need to do a weight converter from pounds into kilograms. 6 00:00:18,660 --> 00:00:24,360 Now, if you from us, from wherever you want, wherever you are from the world, you can just Google 7 00:00:24,360 --> 00:00:25,030 it and find out. 8 00:00:25,050 --> 00:00:28,080 But the assignment is simple. 9 00:00:28,480 --> 00:00:33,360 So these committee assignments, your ability to do simple math operators and will, in what we have 10 00:00:33,360 --> 00:00:36,820 learned so far, you will need to provide the user for his weight in pounds. 11 00:00:36,930 --> 00:00:42,060 Second, you need to provide the weight in pounds and you will need to convert it into kilograms. 12 00:00:42,060 --> 00:00:45,690 Then you will then you will need to display the weight in the council. 13 00:00:46,170 --> 00:00:51,570 Now, the third is the formula you will need to use is one pound is zero point four or five and that's 14 00:00:51,570 --> 00:00:52,190 kilograms. 15 00:00:52,500 --> 00:00:53,880 That is for your conversion. 16 00:00:54,180 --> 00:01:01,640 The number for then the compared to kilograms to a weight of 60 kilos, which then I put there at 60, 17 00:01:01,830 --> 00:01:04,030 doesn't have to be but 60 and based on that. 18 00:01:04,320 --> 00:01:12,480 Now if the person should go on a diet or not with true or false or with boolean values boolean data 19 00:01:12,480 --> 00:01:19,360 types, right now that is the assignment and the assignment is nothing hard. 20 00:01:19,470 --> 00:01:22,860 You can have a different way of doing things. 21 00:01:22,890 --> 00:01:27,600 Now I'm going to show you the output enough that I'm going to show you the input. 22 00:01:27,630 --> 00:01:27,930 Right. 23 00:01:28,470 --> 00:01:37,230 So here it is, put away in Pouncer if I'm 200 pounds and if I do the inspections a lot, it will give 24 00:01:37,230 --> 00:01:37,480 me. 25 00:01:37,480 --> 00:01:40,520 Yeah, I'm 90 kilos in based on calculation. 26 00:01:40,770 --> 00:01:43,020 I should go to the tire and that is true. 27 00:01:43,530 --> 00:01:51,360 For example, if I put a 100 pounds that will give me 45 kilos based on that calculation, I should 28 00:01:51,360 --> 00:01:51,860 go and die. 29 00:01:51,870 --> 00:01:52,530 That's all. 30 00:01:52,530 --> 00:01:54,320 Because I'm very slim. 31 00:01:54,720 --> 00:01:55,120 Right. 32 00:01:55,500 --> 00:02:00,780 So don't be angry by with the weight just for a practice. 33 00:02:00,930 --> 00:02:01,360 Right. 34 00:02:01,380 --> 00:02:03,200 Don't be angry with anything like that. 35 00:02:03,360 --> 00:02:05,720 It's not like I'm 60 kilos. 36 00:02:05,880 --> 00:02:10,920 It's not something that I, I think that is very slim. 37 00:02:10,920 --> 00:02:12,120 Or you fat. 38 00:02:12,330 --> 00:02:12,990 That doesn't matter. 39 00:02:13,020 --> 00:02:14,070 That is what it is. 40 00:02:14,080 --> 00:02:17,400 No, I will show you the rest of it. 41 00:02:17,940 --> 00:02:23,430 And but you need to pause the video and try to figure it out yourself right now. 42 00:02:24,370 --> 00:02:25,950 This is how I did. 43 00:02:26,070 --> 00:02:33,930 I just put initialise all the variables here you need for the conversion is the one that I provided 44 00:02:33,930 --> 00:02:39,420 here in the given weight of 60 kilograms that we just going to compare now. 45 00:02:39,600 --> 00:02:42,990 I'm just going to pound I'm going to prompt the user into the weight in pounds. 46 00:02:43,260 --> 00:02:46,860 And this is actually the output like one hundred and fifty. 47 00:02:48,060 --> 00:02:50,960 And I did say that you need to display it in the council. 48 00:02:51,120 --> 00:02:51,490 Right. 49 00:02:54,030 --> 00:02:57,300 So one hundred and fifty is actually sixty eight kilograms. 50 00:02:57,300 --> 00:02:59,190 And that is you need to go to a nine. 51 00:02:59,190 --> 00:03:08,880 And after that I'm putting that into council and the decision is initialized here and say given weight, 52 00:03:09,090 --> 00:03:13,530 if it's smaller than a kg that we got it from the conversion after that. 53 00:03:13,530 --> 00:03:22,790 Based on the calculation, you you should go on that or based on the calculation, should you go on 54 00:03:22,800 --> 00:03:28,370 diet, should you go on diet? 55 00:03:28,470 --> 00:03:31,530 And that is a question and that's pretty much it. 56 00:03:32,340 --> 00:03:40,620 Now, don't worry if you don't know how to do it right now, if you haven't had like if you haven't 57 00:03:40,620 --> 00:03:50,130 had a clue how to do it, it's all simple math calculation and it's not that much important for you 58 00:03:50,130 --> 00:03:51,350 to follow the rest of the course. 59 00:03:51,510 --> 00:03:52,230 Thank you very much. 60 00:03:52,410 --> 00:03:58,290 I hope you enjoyed this assignment coding assignment for you and wish you to practice some of the things 61 00:03:58,290 --> 00:03:59,790 like that you can find on the Internet. 62 00:03:59,790 --> 00:04:04,460 A lot of coding assignments, but just stick to my course and you will. 63 00:04:04,470 --> 00:04:04,740 Good. 64 00:04:05,280 --> 00:04:07,650 See you in the next one.