00:01
So we're going to be calculating a java program that will calculate the weighted average for a student.
00:11
So we need to first make sure we've imported our scanner, and we also want to create a scanner variable.
00:21
Next, we want to create a total of four different variables to calculate the weighted average.
00:31
So for here we will have, we'll be using doubles to get the final percentage of the grade for the weighted grade for the final exam.
00:53
So also when we're doing, when we're managing percentages, we want to make sure that's in decimal.
01:03
Okay.
01:04
So now we are going to get input from the user.
01:08
So let's create a message.
01:09
Print and then line printer grade four and we can also copy and basis a few more times here we go and we can get to gradewell labs midterm and final exam so for here we will create a double and we are going to name it uhw going to then then if you want to get input in java, we need to our scanner variable, which is sc.
02:10
.next double in parentheses.
02:17
That's pretty much it.
02:20
I want to adjust everything.
02:24
This we get slabbed.
02:35
Now we want to calculate the total grade with the weighted average.
02:42
So once you create another double, we'll name it total.
02:49
And we're going to do the user homework grade times the weighted grade percentage.
03:01
We're going to add this and we're going to do the same for the other three.
03:08
So lab, midterm, final...