!DOCTYPE html>
Due Date: March 12, 2026
import java.util.Scanner;
/*
* Program Name: TestScoreAnalyzer
* Author: Example Program
*
* Description:
* This program demonstrates several important programming concepts:
*
* 1. WHILE LOOP
* Used to repeatedly ask the user to enter scores until the array is full.
*
* 2. FOR LOOP
* Used to calculate totals and averages.
*
* 3. ENHANCED FOR LOOP
* Used to display values stored inside an array.
*
* 4. IF STATEMENTS
* Used to evaluate conditions such as checking if a score is passing.
*
* The program asks the user to enter 5 test scores, stores them in an array,
* calculates the average, and determines how many scores are passing.
*
* Only part of the program is listed below as a guide.
*
*/
public class TestScoreAnalyzer {
public static void main(String[] args) {
// Create a Scanner object so the program can read input from the keyboard
Scanner input = new Scanner(System.in);
// Create an array that will store 5 test scores
int[] scores = new int[5];
Due Date: March 25, 2026
Due Date: March 25, 2026
Resources
Resources
Resources
Resources
Outline