forked from thekingfd/Lab-8
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDropLowestGrade.java
More file actions
38 lines (34 loc) · 1.18 KB
/
DropLowestGrade.java
File metadata and controls
38 lines (34 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package javaprojects;
import java.util.Scanner;
class DropLowestGrade
{
public static void main(String[] args)
{
final int ARRAYSIZE = 5;
String[] studentNames = {"Ann", "Bob", "Cara", "Don", "Eve"};
int[][] studentGrades = new int[ARRAYSIZE][ARRAYSIZE];
final int[] NEW_STUDENT_GRADES = new int[ARRAYSIZE];
for (int row = 0; row < studentGrades.length; row++)
{
System.out.println("Please enter test Scores (0 - 100) for " + studentNames[row]);
for (int column = 0; column < studentGrades[row].length; column++ )
{
getstudentTestScores(studentGrades, row, column);
}
//average = calculateAverageGrade();
//findLowestGrade()
//removeLowestGrade()
//assignLetterGrade ();
//displayStudentGradeReport()
}
}
public static void getstudentTestScores(int[][] testScores, int r, int c)
{
Scanner input = new Scanner(System.in);
System.out.print("Test # " + ++c + ": ");
testScores[r][c] = input.nextInt();
}
public static void displayStudentGradeReport()
{
}
}