/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.itechnoguy;
import java.util.Scanner;

/**
 *
 * @author Issac
 */
public class validate {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        student student = new student(); 
        String name;
        
        System.out.println("Enter the student's name: " ); 
        name = reader.nextLine();
        student.setName(name);
        System.out.println("Score for test one: " );
        student.setScore(1, reader.nextInt()); 
        System.out.println("Score for test two: " );
        student.setScore(2, reader.nextInt());
        System.out.println("Score for test three: " );
        student.setScore(3, reader.nextInt());
        
        if (name == null)
            System.out.println("Sorry, a name is required.");
        else if ()
                    

        String result = student.validateData();
        if(result == null)
            System.out.println("Student is valid.");
        else 
            System.out.println(result);
        }
}
    
    
