1 00:00:01,350 --> 00:00:02,480 Welcome back, my friends. 2 00:00:02,520 --> 00:00:11,190 Welcome to another awesome section of this project, so I'm super happy and excited that I'm able to 3 00:00:11,190 --> 00:00:13,520 present this application to you guys. 4 00:00:13,800 --> 00:00:17,550 So what we have learned so far, we're going to implement it here. 5 00:00:17,790 --> 00:00:26,520 The section for were the section before this was just for learning how the functions are working, how 6 00:00:26,520 --> 00:00:31,500 they communicate, what we can do with the constructors objects and stuff like that. 7 00:00:31,510 --> 00:00:34,180 So it was a little bit more advanced. 8 00:00:34,560 --> 00:00:36,980 Now I'll create this application. 9 00:00:36,990 --> 00:00:42,240 It's not some simple obligation, but it's not something that you will not be able to do it. 10 00:00:42,600 --> 00:00:49,980 So this application is called BERNEY and it stands for burning calories. 11 00:00:49,980 --> 00:00:52,230 You can call it whatever you want it. 12 00:00:52,470 --> 00:00:53,160 So burning. 13 00:00:53,160 --> 00:00:56,060 It's not that good name, I, I admit. 14 00:00:56,340 --> 00:00:58,140 But you can change it. 15 00:00:58,140 --> 00:00:59,560 You can call it whatever you like. 16 00:00:59,580 --> 00:01:08,220 Now, my first goal here is to watch all of the lectures from the first one in this fall from this folder 17 00:01:08,220 --> 00:01:10,680 or from this part until the last one. 18 00:01:10,770 --> 00:01:17,370 I'm seeing this doesn't mean that watching me, you're going to waste your time and you don't need to 19 00:01:17,370 --> 00:01:20,310 listen to me because you can grab the final version of this project. 20 00:01:20,700 --> 00:01:24,090 No, I just want you to learn how those things are done. 21 00:01:24,330 --> 00:01:29,420 I want you to make this application to take it to another level, to do something else. 22 00:01:29,700 --> 00:01:35,160 Send me a screenshot and you can say, OK, look, I've done this and I'm proud of this. 23 00:01:35,160 --> 00:01:36,780 So that is my goal. 24 00:01:37,080 --> 00:01:40,410 So I'm just going to present you the application. 25 00:01:40,410 --> 00:01:41,790 It's going to be this project. 26 00:01:42,630 --> 00:01:45,720 Walk through what this application will do. 27 00:01:45,990 --> 00:01:53,670 Now, on top, you can see that we have the current date and the current date is actually this today, 28 00:01:53,760 --> 00:01:58,950 2020, when I'm recording this and a percentage of my burn calories is zero. 29 00:01:59,250 --> 00:02:02,270 And you can see that I have three 2300. 30 00:02:02,280 --> 00:02:05,560 Now, you can change this according to your weight, to your height. 31 00:02:05,580 --> 00:02:08,100 There is a simple calculation method online. 32 00:02:08,100 --> 00:02:12,240 You can find it, you can do it for your own body and you can change this. 33 00:02:12,240 --> 00:02:16,980 You can start maybe from two thousand five hundred or if you're a girl, maybe less than this. 34 00:02:17,040 --> 00:02:17,420 Right. 35 00:02:17,760 --> 00:02:24,900 So I want you to notice that now this here go it will go like this. 36 00:02:24,900 --> 00:02:26,460 It will be a percentage more. 37 00:02:26,940 --> 00:02:30,290 It will move as we add more calories. 38 00:02:30,300 --> 00:02:37,260 Know this part here will present the calories we added through eating and this part will be the calories 39 00:02:37,260 --> 00:02:39,120 that we burn through exercise. 40 00:02:39,660 --> 00:02:43,480 Now, the plus icon will be for adding the calories. 41 00:02:43,500 --> 00:02:47,460 I'm just going to show you and there is a select option here. 42 00:02:48,360 --> 00:02:50,670 It will be for food or for exercise. 43 00:02:50,670 --> 00:02:52,950 I'm just going to go back in this here. 44 00:02:52,950 --> 00:02:58,860 You can see what we have eaten in the food section and in the exercise section. 45 00:02:58,860 --> 00:03:01,170 What we have done right now. 46 00:03:01,500 --> 00:03:02,520 This is what I've done. 47 00:03:02,520 --> 00:03:03,170 You can change. 48 00:03:03,170 --> 00:03:04,920 This is from on splash images. 49 00:03:05,220 --> 00:03:06,330 You can go grab them. 50 00:03:06,330 --> 00:03:10,020 You can create your own obligation after watching this part. 51 00:03:10,260 --> 00:03:10,640 Right. 52 00:03:10,650 --> 00:03:16,320 Because you might think that you can do some I don't know, for example, home loan calculator. 53 00:03:16,320 --> 00:03:17,880 You can even do that after this. 54 00:03:18,180 --> 00:03:18,570 Right. 55 00:03:18,750 --> 00:03:20,370 So I'm just giving you ideas now. 56 00:03:20,370 --> 00:03:27,390 I'm just going to add some food here and I'm going to say, OK, ice cream, that's not food, but it's 57 00:03:27,540 --> 00:03:27,930 here. 58 00:03:27,930 --> 00:03:29,820 You can add the quantity like one. 59 00:03:29,820 --> 00:03:34,860 I'm just going to have two ice cream in the number of calories will be one hundred and fifty point sixty 60 00:03:34,860 --> 00:03:35,610 five, for example. 61 00:03:35,610 --> 00:03:37,500 It can be decimal or eight. 62 00:03:38,100 --> 00:03:42,720 Now, I'm just going to add in that should give me three hundred and one actually. 63 00:03:42,750 --> 00:03:42,990 Right. 64 00:03:43,020 --> 00:03:44,070 It's going to rounded back. 65 00:03:44,310 --> 00:03:47,370 So here I delete all of this. 66 00:03:48,570 --> 00:03:51,950 I emptied out one and there's a hundred and 301 calories. 67 00:03:52,210 --> 00:03:52,830 Thirty two. 68 00:03:53,040 --> 00:03:56,400 And they can know that there are two decimal spaces here. 69 00:03:56,550 --> 00:03:57,990 There is no decimals here. 70 00:03:57,990 --> 00:03:58,260 Right. 71 00:03:58,500 --> 00:03:59,550 That's what we're going to do. 72 00:03:59,670 --> 00:04:05,700 I don't want here to have decimals and yeah, it is when we have a thousand we're going to have comma. 73 00:04:05,700 --> 00:04:09,240 That's a way we're going to do the formatting for the numbers. 74 00:04:10,260 --> 00:04:13,590 OK, and you can see that bar is going down. 75 00:04:13,800 --> 00:04:14,550 So what else? 76 00:04:14,550 --> 00:04:22,410 I'm going to say hamburger if I can type it right and I'm going to say one and I'm going to say, OK, 77 00:04:22,410 --> 00:04:24,930 three, 560 calories. 78 00:04:25,350 --> 00:04:26,880 That's what this is working. 79 00:04:26,880 --> 00:04:28,880 You enter when you press enter. 80 00:04:29,010 --> 00:04:29,490 Right. 81 00:04:29,970 --> 00:04:38,130 So let's go back and I have one thousand four hundred thirty nine calories remaining and this is thirty 82 00:04:38,130 --> 00:04:41,850 seven percent of our total number of calories. 83 00:04:41,910 --> 00:04:48,510 No, here I do have this food and it's blinking because I have added a food. 84 00:04:48,510 --> 00:04:48,860 Right. 85 00:04:48,870 --> 00:04:50,790 I have added a calories for food. 86 00:04:51,000 --> 00:04:56,110 If I add calories for the exercise, it should go there so that states should be changed. 87 00:04:56,110 --> 00:04:59,070 So if you open up here now, you do have the ice cream. 88 00:04:59,070 --> 00:04:59,820 You do have the. 89 00:04:59,970 --> 00:05:04,350 The hamburgers and when you hover, you do have these delete button, right? 90 00:05:05,730 --> 00:05:07,750 We are going to worry about that delete button. 91 00:05:07,750 --> 00:05:11,730 But remember, we need to update something here later in the project. 92 00:05:12,090 --> 00:05:14,250 We need to update the cavalry's here. 93 00:05:14,280 --> 00:05:16,440 So we are going to learn how to do this. 94 00:05:16,720 --> 00:05:21,540 Now, I'm just going to add one more and I'm going to say salad in the salad. 95 00:05:21,550 --> 00:05:27,930 I'm just going to say, OK, one and let's say one hundred and sixty five calories and I'm done with 96 00:05:27,930 --> 00:05:28,480 the calories. 97 00:05:28,510 --> 00:05:31,830 Now I'm going to add exercise like running. 98 00:05:32,820 --> 00:05:37,440 So I just run two laps, one hundred and fifty calories. 99 00:05:37,770 --> 00:05:44,940 And let's say that should be enough, OK, to run and walk and one 100 00:05:47,550 --> 00:05:48,840 200 calories. 101 00:05:49,200 --> 00:05:50,050 That's pretty much it. 102 00:05:50,310 --> 00:05:54,930 So if you go to the exercise, I'm going to have these two running and walking. 103 00:05:54,930 --> 00:05:58,290 So if you have more, you can see this scrawlings here. 104 00:05:58,290 --> 00:05:59,530 You can go down, right? 105 00:05:59,580 --> 00:06:01,710 That's what that is to see. 106 00:06:01,710 --> 00:06:02,850 This is how I style it. 107 00:06:02,850 --> 00:06:03,070 Right. 108 00:06:03,090 --> 00:06:04,010 You can change it even. 109 00:06:04,030 --> 00:06:09,630 I'm going to give you the Cyesis part and you can change and you can update it for your for your project. 110 00:06:09,930 --> 00:06:10,950 So that's pretty much it. 111 00:06:12,240 --> 00:06:17,390 And now I just crank it up the calories that go up a little bit because I burn some of those calories. 112 00:06:17,400 --> 00:06:19,200 And this is the logic that I have. 113 00:06:19,440 --> 00:06:20,790 You might have different logic. 114 00:06:20,790 --> 00:06:22,290 You can implement your logic. 115 00:06:22,650 --> 00:06:23,020 Right. 116 00:06:23,220 --> 00:06:25,120 So that is pretty much it. 117 00:06:25,140 --> 00:06:30,030 Now, the next part is that we can learn, for example, we can delete for example, I don't want to 118 00:06:30,030 --> 00:06:34,080 have ice cream because I did that ice cream today, for example. 119 00:06:34,260 --> 00:06:34,720 I did. 120 00:06:36,000 --> 00:06:37,740 I did had ice cream yesterday. 121 00:06:37,860 --> 00:06:41,310 And take note, this is more than one thousand calories at the moment. 122 00:06:41,670 --> 00:06:48,300 So if I delete the ice cream, the ice cream part will be deleted from this graphical user interface 123 00:06:48,300 --> 00:06:51,660 here and also will be deleted from here. 124 00:06:52,050 --> 00:06:52,380 Right. 125 00:06:52,620 --> 00:06:54,630 And that will be updated as well. 126 00:06:54,910 --> 00:07:01,950 Now, I could do the same thing for walking and I have only 300 calories. 127 00:07:01,950 --> 00:07:06,200 And this is going to the 18 percent or the remaining of this. 128 00:07:06,240 --> 00:07:14,850 So I hope you like this project and I hope you are going to create some after this some more beautiful 129 00:07:14,850 --> 00:07:21,000 project, which I'm which I'm going to give you the Cyesis and you can have a look in the Sears's how 130 00:07:21,000 --> 00:07:24,240 I style it some things and you can go even one step further. 131 00:07:24,510 --> 00:07:30,450 Next lecture, I will discuss a little bit the markup, what will be our starting project, and after 132 00:07:30,450 --> 00:07:32,720 that we're going to start coding this part. 133 00:07:33,090 --> 00:07:37,740 So I hope you like this project and this is everything about this project. 134 00:07:37,980 --> 00:07:45,870 So we're going to have actually one form here for selecting what type of food or exercise we're going 135 00:07:45,870 --> 00:07:47,970 to put the calories short description. 136 00:07:47,970 --> 00:07:54,840 We can put our mind here, the quantity and insert that is stored somewhere in the storage that we're 137 00:07:54,840 --> 00:07:55,440 going to create. 138 00:07:56,230 --> 00:07:56,600 Right. 139 00:07:56,790 --> 00:07:58,430 So that is pretty much it. 140 00:07:58,740 --> 00:08:04,260 Now, what else we can do is that you can visually see this up going. 141 00:08:04,260 --> 00:08:06,870 For example, I'm going to add one more food and you will see. 142 00:08:07,890 --> 00:08:14,850 So I'm going to say, OK, dinner and I'm going to be one and I'm going to say 850 calories and I haven't 143 00:08:14,850 --> 00:08:15,560 shown you this one. 144 00:08:15,750 --> 00:08:22,680 Now, this will change its color because we are going around two thousand calories. 145 00:08:22,920 --> 00:08:29,550 So we have added one thousand five hundred and seventy five calories. 146 00:08:29,550 --> 00:08:39,120 We can just crank it up one more and let's say, I don't know, lunch, let's put 700 and that will 147 00:08:39,120 --> 00:08:41,700 go here to 325. 148 00:08:41,700 --> 00:08:47,340 And this this will start spinning here thing remaining 325 calories. 149 00:08:47,490 --> 00:08:57,030 So how cool is this right now if you add an exercise, for example, again, running or not running, 150 00:08:58,920 --> 00:09:04,140 maybe I do have like say eight, nine hundred calories, which is really hard to do. 151 00:09:04,170 --> 00:09:04,590 Right. 152 00:09:05,970 --> 00:09:09,030 And that will go back to that color. 153 00:09:09,240 --> 00:09:10,560 If you do sorry. 154 00:09:10,560 --> 00:09:20,970 If you do one more exercise, like not not walking like four hundred and fifty calories, you're going 155 00:09:20,970 --> 00:09:29,520 to be in a green part right here is in a green zone means that you eat two dozen, more than 2000 calories, 156 00:09:29,520 --> 00:09:31,620 but you burn like a lot. 157 00:09:31,620 --> 00:09:32,700 So that's pretty much it. 158 00:09:33,360 --> 00:09:34,980 And I hope you enjoy this one. 159 00:09:34,980 --> 00:09:36,000 I hope you like it. 160 00:09:36,040 --> 00:09:43,170 You will be able to create this application if you follow me from the first lecture to the last one. 161 00:09:43,200 --> 00:09:47,820 Just don't grab and copy the final version and expect that you're going to understand everything. 162 00:09:47,940 --> 00:09:52,620 So thank you very much and I hope I'm going to see you in the next one.