Ok, I need help finishing my homework. I do not want the answers, just hints that will take me to finish the program. I am still a begginer at java so bear with me please.

This is my hmw:
Write a java program to help students to calculate his/her grade. The program will prompt user for the following inputs: attendance grade, assignment grades, 2 exam grades, a lab grade, and a grade of the final exam. It then calculates the weighted average and print on the screen both this value and a letter grade the student will receive. Your program should work for as many students as what user needs. The following is the sample screen display where the user inputs are underlined.

The weighted average is:
95.0 * 5% + 85.0 * 20% + 70 * 15% + 80 * 15% + 70 * 25% + 100 * 20% = 81.75

Do you want to calculate for another student? Please type true or false.
true
… // screen display for the next student
Do you want to calculate for another student? Please type true or false.
false
Bye!

So far i have this:

``````import java.util.Scanner;

public class JL7{

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

double average, assignmentaverage;
int as1, as2, as3, as4, as5, ex1, ex2, lab, finalGrade;

as1 = sc.nextInt();
as2 = sc.nextInt();
as3 = sc.nextInt();
as4 = sc.nextInt();
as5 = sc.nextInt();
ex1 = sc.nextInt();
ex2 = sc.nextInt();
You can put all that inside a `while` loop so it will keep repeating the input and calculations until thr user types false.