TestScores - /* Author: * Section #: * Instructor: *...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Author: Eric Adlam * Section #: D5 * Instructor: Coach * Project Name: Average Scores * Assignment #: 7 * Due Date: 10/08/09 * * Description: Java Applet which allows the user to enter up to 10 scores * and computes the average score. It displays the average, * the number of scores that are above the average, and the * number of scores below the average. For extra credit, the * array is printed at the end in ascending order. * * Scores are stored as integers in an array. The average * is truncated to the integer type. Valid scores are between * 0 and 100. Scores over 100 are not added to the array, and * a message is displayed in the Status bar. Scores below * are interpreted as the end of the array. They disengage * the input field, they are not added to the array, the * existing scores are computed, and message is displayed in * the status bar. */ package week6; p import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.lang.String; import java.util.Arrays; i public class TestScores extends Applet
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course CS 120 taught by Professor Robertdependahl during the Fall '09 term at Santa Barbara City.

Page1 / 4

TestScores - /* Author: * Section #: * Instructor: *...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online