Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C# Programming

Tutorial: Assessment - Hard Attendance Problems

 

att3.txt

#name	init	mod	yyyy-mm-dd hh:mi:ss	week
Alpha   A       Java    2007-10-04 09:00:00     01
Bravo   B       Java    2007-10-04 09:00:00     01
Charlie C       Java    2007-10-04 09:00:00     01
Delta   D       Java    2007-10-04 09:00:00     01
Golf    G       Java    2007-10-04 09:00:00     01
Alpha   A       RAD     2007-10-02 09:00:00     01
Bravo   B       RAD     2007-10-02 09:00:00     01
...

11. Week 4 Attenders


Big

Print the names of the students who attended all of the week 4 Java events

12. Most and fewest


Big

Show the students who have attended most events. Show the students who have attended fewest events.

13. Summarise


Big

For each student for each subject (IIS, Java, PD, RAD) show the number of events attended for weeks 1 to 5 as a single digit:

Alpha	A	32001	11001	21112	11000	
Bravo	B	21322	22121	32323	11000	
Charlie	C	21300	22100	31100	11000	

In the example Alpha attended three IIS events in week 1, he attended 2 IIS events in week 2 but none in weeks 3 or 4. He attended one event in week 5. In Java he attended once in weeks 1,2 and 5 but none in 3 or 4.

14. No Data


Big

Some events have attendance data recorded in some weeks but not others. Identify the events that took place in other weeks but did not have attendance data in week 4.

15. Missed Events


Big

Identify the events that Alpha missed in week 3. Include only those that we can be certain were recorded.

The file tt.txt includes timetable data.