
/**
 * Write a description of class exercises here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */
public class exercises
{
    
    /**
     * Make a new student object with the following credits A=64, M=45, E=26
     */
    public void andyCredits(){
        Student Andy = new Student("Andy", 64, 35, 26);//This is Mr Chuang as  Year 12
        System.out.println("");
    }
        
    /**
     * Create the student Andy and print out if he has NCEA level 2
     * Also print out if he has an endorsement
     * Use the functions in the object
     */
    public void studentCredits(){
        Student Andy = new Student("Andy", 64, 45, 26);
        System.out.println(Andy.hasNCEA(Andy.achieve, Andy.merit, Andy.excellence));
        System.out.println(Andy.hasEndorsement(Andy.achieve, Andy.merit, Andy.excellence));
    }
    
    /**
     * Create 2 student objects. Set them up so that one of them is 14 credits away from level 2. Set the other one up so he has an Excellence edorsement
     */
    public void otherStudents(){
        Student Harriot = new Student("Harriot", 0, 10, 50);
        System.out.println(Harriot.hasNCEA(Harriot.achieve, Harriot.merit, Harriot.excellence));
        System.out.println(Harriot.hasEndorsement(Harriot.achieve, Harriot.merit, Harriot.excellence));
        Student Joshua = new Student("Joshua", 46, 0, 0);
        System.out.println(Joshua.hasNCEA(Joshua.achieve, Joshua.merit, Joshua.excellence));
        System.out.println(Joshua.hasEndorsement(Joshua.achieve, Joshua.merit, Joshua.excellence));
    }
    
    /**
     * Create yourself as a student object with your credits. Have it print out how much more you need.
     */
    public void yourself(){
        Student Henry = new Student("Henry", 9, 9, 9);
        System.out.println(Henry.achievementDist(Henry.achieve, Henry.merit, Henry.excellence));
    }
}
