Java - Input Grade Book
Create a new Class and call it GradeBook.
This program will input 2 test grades and 6 daily grades. It will then calculate the grade and display it on the screen.
The grades are weighted: Test - 40% Daily - 60%.
1. First create a list of all the variables needed. (don't forget the Scanner keyboard)
double test1, test2;
double daily1, daily2, daily3, daily4, daily5, daily6;
double finalGrade, dailyAverage, testAverage;
Scanner keyboard = new Scanner(System.in);
2. Get all the input (grades)
3. Calculate the dailyAverage and the testAverage
4. Calculate the finalGrade
finalGrade = dailyAverage * 0.6 + testAverage * 0.4;
5. Print out the final grade.
This program will input 2 test grades and 6 daily grades. It will then calculate the grade and display it on the screen.
The grades are weighted: Test - 40% Daily - 60%.
1. First create a list of all the variables needed. (don't forget the Scanner keyboard)
double test1, test2;
double daily1, daily2, daily3, daily4, daily5, daily6;
double finalGrade, dailyAverage, testAverage;
Scanner keyboard = new Scanner(System.in);
2. Get all the input (grades)
3. Calculate the dailyAverage and the testAverage
4. Calculate the finalGrade
finalGrade = dailyAverage * 0.6 + testAverage * 0.4;
5. Print out the final grade.