public void calcCourseResult() {
		setNumofTotalStudent(0);

		setNumofSecondGradeStudent(0);
		setNumofThirdGradeStudent(0);
		setNumofFourthGradeStudent(0);

		setNumofMainMajorStudent(0);
		setNumofMultiMajorStudent(0);
		setNumofPartMajorStudent(0);
		setNumofOtherStudent(0);

		int secondGrade = 0;
		int thirdGrade = 0;
		int fourthGrade = 0;

		int mainMajor = 0;
		int multiMajor = 0;
		int partMajor = 0;
		int otherMajor = 0;

		List<Survey> surveys = getSurveys();
		ArrayList<Account> accounts = new ArrayList<Account>();
		for (Survey survey : surveys) {
			accounts.add(survey.getAccount());
		}

		setNumofTotalStudent(accounts.size());

		for (Account account : accounts) {
			if (account.getStudentGrade()==2)
				secondGrade++;
			else if (account.getStudentGrade()==3)
				thirdGrade++;
			else if (account.getStudentGrade()==4)
				fourthGrade++;

			if (account.getStudentWhy().equals("main"))
				mainMajor++;
			else if (account.getStudentWhy().equals("multi"))
				multiMajor++;
			else if (account.getStudentWhy().equals("part"))
				partMajor++;
			else if (account.getStudentWhy().equals("other"))
				otherMajor++;
		}

		setNumofSecondGradeStudent(secondGrade);
		setNumofThirdGradeStudent(thirdGrade);
		setNumofFourthGradeStudent(fourthGrade);

		setNumofMainMajorStudent(mainMajor);
		setNumofMultiMajorStudent(multiMajor);
		setNumofPartMajorStudent(partMajor);
		setNumofOtherStudent(otherMajor);
	}