Write a program named FirstQtrTestScores that gets a student's full name, asks for her four 1st Quarter test scores, keeps track of the total first quarter test points, and calculates the average test score.
Use the following variables:
One that controls the loop (Use a for loop)
One that keeps track of the number of test scores that have been entered
One that stores the test scores as they are entered by the user.
One that keeps track of the total points
One that calculates and stores the average test score.
The message at the end should read as follows:
Remember: the [ ] symbols indicate output that will vary depending on what the user enters for input.
Student Name: [Sally Sue]
First Quarter Tests: 4
First Quarter Test Average: [89.1]
I mean, i'm not just blatantly asking someone to do my homework for me, but i'mc confused how to set this up? Like, test scores is multiple so i'm not sure how i would do that, and in the for loop can i still assign a value to the variable "testScores"?
import java. util.*;
public class FirstQtrTestScores
public static void main (String args)
Scanner scan = new Scanner (System. in);
int numberOfTests = 3;
System. out. println ("What is your name?");
name = scan. next ();
firstScore = scan. nextInt ();
System. out. println ("What is your second test score in first quarter?");
secondScore = scan. nextInt ();
System. out. println ("What is your third test score in first quarter?");
thirdScore = scan. nextInt ();
totalScore = firstScore + secondScore + thirdScore;
while (totalScore >= 0)
averageScore = firstScore + secondScore + thirdScore / 3;