Welcome back, my friends.
Welcome to another awesome section of this project, so I'm super happy and excited that I'm able to
present this application to you guys.
So what we have learned so far, we're going to implement it here.
The section for were the section before this was just for learning how the functions are working, how
they communicate, what we can do with the constructors objects and stuff like that.
So it was a little bit more advanced.
Now I'll create this application.
It's not some simple obligation, but it's not something that you will not be able to do it.
So this application is called BERNEY and it stands for burning calories.
You can call it whatever you want it.
So burning.
It's not that good name, I, I admit.
But you can change it.
You can call it whatever you like.
Now, my first goal here is to watch all of the lectures from the first one in this fall from this folder
or from this part until the last one.
I'm seeing this doesn't mean that watching me, you're going to waste your time and you don't need to
listen to me because you can grab the final version of this project.
No, I just want you to learn how those things are done.
I want you to make this application to take it to another level, to do something else.
Send me a screenshot and you can say, OK, look, I've done this and I'm proud of this.
So that is my goal.
So I'm just going to present you the application.
It's going to be this project.
Walk through what this application will do.
Now, on top, you can see that we have the current date and the current date is actually this today,
2020, when I'm recording this and a percentage of my burn calories is zero.
And you can see that I have three 2300.
Now, you can change this according to your weight, to your height.
There is a simple calculation method online.
You can find it, you can do it for your own body and you can change this.
You can start maybe from two thousand five hundred or if you're a girl, maybe less than this.
Right.
So I want you to notice that now this here go it will go like this.
It will be a percentage more.
It will move as we add more calories.
Know this part here will present the calories we added through eating and this part will be the calories
that we burn through exercise.
Now, the plus icon will be for adding the calories.
I'm just going to show you and there is a select option here.
It will be for food or for exercise.
I'm just going to go back in this here.
You can see what we have eaten in the food section and in the exercise section.
What we have done right now.
This is what I've done.
You can change.
This is from on splash images.
You can go grab them.
You can create your own obligation after watching this part.
Right.
Because you might think that you can do some I don't know, for example, home loan calculator.
You can even do that after this.
Right.
So I'm just giving you ideas now.
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
here.
You can add the quantity like one.
I'm just going to have two ice cream in the number of calories will be one hundred and fifty point sixty
five, for example.
It can be decimal or eight.
Now, I'm just going to add in that should give me three hundred and one actually.
Right.
It's going to rounded back.
So here I delete all of this.
I emptied out one and there's a hundred and 301 calories.
Thirty two.
And they can know that there are two decimal spaces here.
There is no decimals here.
Right.
That's what we're going to do.
I don't want here to have decimals and yeah, it is when we have a thousand we're going to have comma.
That's a way we're going to do the formatting for the numbers.
OK, and you can see that bar is going down.
So what else?
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,
three, 560 calories.
That's what this is working.
You enter when you press enter.
Right.
So let's go back and I have one thousand four hundred thirty nine calories remaining and this is thirty
seven percent of our total number of calories.
No, here I do have this food and it's blinking because I have added a food.
Right.
I have added a calories for food.
If I add calories for the exercise, it should go there so that states should be changed.
So if you open up here now, you do have the ice cream.
You do have the.
The hamburgers and when you hover, you do have these delete button, right?
We are going to worry about that delete button.
But remember, we need to update something here later in the project.
We need to update the cavalry's here.
So we are going to learn how to do this.
Now, I'm just going to add one more and I'm going to say salad in the salad.
I'm just going to say, OK, one and let's say one hundred and sixty five calories and I'm done with
the calories.
Now I'm going to add exercise like running.
So I just run two laps, one hundred and fifty calories.
And let's say that should be enough, OK, to run and walk and one
200 calories.
That's pretty much it.
So if you go to the exercise, I'm going to have these two running and walking.
So if you have more, you can see this scrawlings here.
You can go down, right?
That's what that is to see.
This is how I style it.
Right.
You can change it even.
I'm going to give you the Cyesis part and you can change and you can update it for your for your project.
So that's pretty much it.
And now I just crank it up the calories that go up a little bit because I burn some of those calories.
And this is the logic that I have.
You might have different logic.
You can implement your logic.
Right.
So that is pretty much it.
Now, the next part is that we can learn, for example, we can delete for example, I don't want to
have ice cream because I did that ice cream today, for example.
I did.
I did had ice cream yesterday.
And take note, this is more than one thousand calories at the moment.
So if I delete the ice cream, the ice cream part will be deleted from this graphical user interface
here and also will be deleted from here.
Right.
And that will be updated as well.
Now, I could do the same thing for walking and I have only 300 calories.
And this is going to the 18 percent or the remaining of this.
So I hope you like this project and I hope you are going to create some after this some more beautiful
project, which I'm which I'm going to give you the Cyesis and you can have a look in the Sears's how
I style it some things and you can go even one step further.
Next lecture, I will discuss a little bit the markup, what will be our starting project, and after
that we're going to start coding this part.
So I hope you like this project and this is everything about this project.
So we're going to have actually one form here for selecting what type of food or exercise we're going
to put the calories short description.
We can put our mind here, the quantity and insert that is stored somewhere in the storage that we're
going to create.
Right.
So that is pretty much it.
Now, what else we can do is that you can visually see this up going.
For example, I'm going to add one more food and you will see.
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
shown you this one.
Now, this will change its color because we are going around two thousand calories.
So we have added one thousand five hundred and seventy five calories.
We can just crank it up one more and let's say, I don't know, lunch, let's put 700 and that will
go here to 325.
And this this will start spinning here thing remaining 325 calories.
So how cool is this right now if you add an exercise, for example, again, running or not running,
maybe I do have like say eight, nine hundred calories, which is really hard to do.
Right.
And that will go back to that color.
If you do sorry.
If you do one more exercise, like not not walking like four hundred and fifty calories, you're going
to be in a green part right here is in a green zone means that you eat two dozen, more than 2000 calories,
but you burn like a lot.
So that's pretty much it.
And I hope you enjoy this one.
I hope you like it.
You will be able to create this application if you follow me from the first lecture to the last one.
Just don't grab and copy the final version and expect that you're going to understand everything.
So thank you very much and I hope I'm going to see you in the next one.