import javax.swing.*; import java.util.Date; /* * produce an academic transcript * * COMP 1010 Section A02 * Instructor: Domaratzki * Assignment: Assignment 3, Question 1 * @author: Nick Ratuski * @version: 1.0 - 2007-October */ public class Ratuski_Nicholas_A3Q1 { /* * PURPOSE: produce an academic transcript based on input given by user. */ //Method to find amount of students to process public static int getStudentAmount() { int amount; //# of students to process String temp; //temporary input string //get input temp = JOptionPane.showInputDialog ("Enter the number of students to process (between 1 and 10)."); amount = Integer.parseInt(temp); if (amount > 10 || amount < 1) { //user input invalid, retrieve it again getStudentAmount(); } return amount; } //Since java doesn't have array.hasValue, i'll make a method for it myself. //Method to return true if an array contains item. public boolean hasValue(String table[], String item) { int length = table.getLength(); for ( int i=0; i