00:01
In this video, we are going to be calculating three bunnies.
00:04
So to get started, we need to import, make sure you've imported our scanner and created a scanner variable.
00:13
Now we're going to create a constant, which we'll call it.
00:20
I'm sure, actually we'll do a double, double, chi in the g.
00:30
You will be equal to 9 .8.
00:32
This will be a gravity and we need our time to calculate velocity so t integer or actually double t and it's going to be equal to actually we won't initialize a value yet okay okay so now you want to create a variable for velocity actually, no, not velocity for our height.
01:22
Okay, so now we can ask the user to input, put on a new line, enter, time.
01:36
Now we're gonna take this time, and then we're going to do our scanner ram.
01:42
Next, okay, and now, actually we're gonna do create another variable and call it t2, which is t2.
02:03
T2 is going to be equal to t times t.
02:08
All right.
02:11
So now we have our g, t in our height...