@SuppressWarnings({ "unchecked", "rawtypes" })
	public static void editAssessmentComponentWeightage(){ // edit weightage of components
		System.out.println("Choose Course to Update Assessment Component Weightage :");
		Course tempCourse = (Course)chooseChoosable((ArrayList)courseList);
		System.out.printf("Exam total and weightage has %sbeen set.\n",tempCourse.getExam()==null?"not ":"");
		System.out.printf("Coursework total and weightage has %sbeen set.\n",tempCourse.getCourseWork()==null?"not ":"");
		int choice;
		do{
			System.out.println("Press 1 to Update Exam and 2 to Update Coursework. Press Any Other Number to Quit.");
			//choice;// = sc.nextInt();
			while(true){//only int input accepted
				if(sc.hasNextInt()){
					choice = sc.nextInt();
					break;
				}else {
					System.out.println("Please enter a valid choice!");
					sc.next();
				}
			}
			if(choice==1) editExam(tempCourse);
			else if (choice==2)editCourseWork(tempCourse);
		} while (choice == 1 || choice == 2);

	}