/**
*
*
* @author Administrator
*
*/
import java.time.*;
import java.util.*;
public class Student {
private long id;
private String name;
private LocalDate birthday;
private Course[] seletedCourses;
public Student(long id, String name, int year, int month, int day, int n)
{
this.id = id;
this.name = name;
birthday = LocalDate.of(year, month, day);
seletedCourses = new Course[n];
}
public void inputScore()
{
Scanner in = new Scanner(System.in);
for(int i = 0; i < seletedCourses.length; i++)
{
System.out.println("Please input the course name:");
String courseName = in.nextLine();
System.out.println("Please input the course score:");
float score = in.nextFloat();
System.out.println("Please input the course grade:");
float grade = in.nextFloat();
seletedCourses[i] = new Course(courseName, score, grade);
in.nextLine();
}
}
public float computeGrade()
{
return 0.0f;
}
}