Do in JAVA please: (10 marks) A news magazine wants to conduct a survey across the four research universities in Alberta. For each university, the magazine wants to gather data on the number of departments, the number of students doing research in each department, courses taken by each research student, and marks scored by these students in courses. Design and develop a class to capture this information. Then write a program to find the average marks scored by students in a given discipline across all four universities. Note: a discipline might include a number of courses.

import java.io.*;
import java.util.*;
class Student {
private ArrayList courses;
private ArrayList marks;
public Student(){
courses = new ArrayList();
marks = new ArrayList();
}
public ArrayList getCourses(){
return courses;
}
public ArrayList getMarks(){
return marks;
}
public void addCourseMarks(String cr, int mk){
courses.add(cr);
marks.add(mk);
}
}
class Department {
private int numberOfStudents;
private ArrayList list;
public Department(){
numberOfStudents = 0;
list = new ArrayList();
}
public void setNumberOfStudents(int n){
numberOfStudents = n;
}
public int getNumberOfStudents(){
return numberOfStudents;
}
public ArrayList getList(){
return list;
}
public void add(Student st){
list.add(st);
}
}
class University {
private int numberOfDepartments;
private ArrayList depts;
public University(){
numberOfDepartments = 0;
depts = new ArrayList();
}
public void setNumberOfDepts(int n){
numberOfDepartments = n;
}
public int getNumberOfDepts(){
return numberOfDepartments;
}
public ArrayList getDepts(){
return depts;
}
public void addDepartment(Department dp){
depts.add(dp);
}
}
public class DemoUniversity{
public static void main(String[] args){
ArrayList discipline = new ArrayList();
ArrayList depts;
ArrayList students;
Scanner sc = new Scanner(System.in);
University[] list = new University[4];
for (int i = 0; i courses = students.get(l).getCourses();
ArrayList marks = students.get(l).getMarks();
for (int m = 0; m
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"