create a program using java that calculates the current grade in a classroom. the program should ask for 5 grades as well as the total point value per grade available.

I have a program that does this

Could you give me an idea of how to do this? I'm lost

To create a program in Java that calculates the current grade in a classroom, you can follow these steps:

1. Import the necessary packages:
```java
import java.util.Scanner;
```

2. Create a `Scanner` object to read input from the user:
```java
Scanner scanner = new Scanner(System.in);
```

3. Declare variables to store the total point value and sum of grades:
```java
double totalPointValue = 0.0;
double sumOfGrades = 0.0;
```

4. Prompt the user to enter the grades and their corresponding total point values using a loop:
```java
for (int i = 0; i < 5; i++) {
System.out.print("Enter grade " + (i + 1) + ": ");
double grade = scanner.nextDouble();
System.out.print("Enter total point value: ");
double pointValue = scanner.nextDouble();

totalPointValue += pointValue;
sumOfGrades += (grade * pointValue);
}
```

5. Calculate the current grade by dividing the sum of grades by the total point value:
```java
double currentGrade = sumOfGrades / totalPointValue;
```

6. Display the current grade:
```java
System.out.println("Your current grade is: " + currentGrade);
```

7. Close the `Scanner` object to free up resources:
```java
scanner.close();
```

Putting it all together, here's the complete program:

```java
import java.util.Scanner;

public class GradeCalculator {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double totalPointValue = 0.0;
double sumOfGrades = 0.0;

for (int i = 0; i < 5; i++) {
System.out.print("Enter grade " + (i + 1) + ": ");
double grade = scanner.nextDouble();
System.out.print("Enter total point value: ");
double pointValue = scanner.nextDouble();

totalPointValue += pointValue;
sumOfGrades += (grade * pointValue);
}

double currentGrade = sumOfGrades / totalPointValue;

System.out.println("Your current grade is: " + currentGrade);

scanner.close();
}
}
```

Now you can compile and run this Java program to calculate the current grade based on the input grades and total point values provided by the user.