How many computing
Show how many responses were gathered for question 1, UKPRN 10007772, with subject "(8) Computer Science"
The for loop is used to inspect every one of the 50000 records until we find the one that matches the conditions. We need three different conditions to be true:
- nss.question == 1
- Notice that we use == to compare two integers
- nss.subject.equals("(8) Computer Science")
if (nss.UKPRN.equals("10007772") && nss.question==1 && nss.subject.startsWith("(8)")) System.out.println(nss.response);
Big Computing Departments
Show the name of every institution where the sample for question 1 for the subject “(8) Computer Science” is at least 300
You should check the value nss.sample
Good Computing Departments
Show the names of the institutions where more than 50% of students DEFINITELY_AGREE with question 1 for the subject “(8) Computer Science”.
The NSS class includes an array answered that gives the percentage of students who answered either "Definitely Disagree", "Mostly Disagree", "Neutral", "Mostly Agree" or "Definitely Agree".
- This array has 5 values - one for each of the possible responses.
- You can find the percentage of students who "definitely agree" in the element nss.answered
- We want to avoid using values like 4 we have constants defined. You can use nss.answered[NSS.DEFINITELY_AGREE]
High Scoring Computing Departments
Show the names of the institutions where more than 90% of students DEFINITELY_AGREE or MOSTLY_AGREE with question 1 for the subject “(8) Computer Science”.
How many students in Computing? How many in Art & Design?
Show the total number of students who responded to question 22 for the subject “(8) Computer Science” show the same figure for the subject “(H) Creative Arts and Design”.