Find the average of life of people from Little Carter Lane who were buried at St. Mary Magdalene Cemetery, Old Fish Street, City of London during the period January 5, 1813 to July 10, 1853. A key part of this project is to develop a Tombstone class to record information about each internee and a Cemetery class to hold all the information about the residents of the cemetery.
Here is the start of the cemetery record data file:
ST MARY MAGDALENE OLD FISH STREET CITY OF LONDON
Burials 5th Jan 1813 - 10th July 1853
NAME BURIAL DATE AGE RESIDENTIAL ADDRESS
----------------------- ----------- --- ----------------------------
John William ALLARDYCE 17 Mar 1844 2.9 Little Knight Ryder Street
Frederic Alex. ALLARDYCE 21 Apr 1844 0.17 Little Knight Ryder Street
Philip AMIS 03 Aug 1848 1 18 1/2 Knight Rider Street
Thomas ANDERSON 06 Jul 1845 27 2, Bennet's Hill
Edward ANGEL 20 Nov 1842 22 Crane Court Lambeth Hill
Sarah ANGELL 09 Oct 1836 42 Lambeth Hill
.....
The age field in this file is of this format:
| AGE column | Interpretation | |
| 39 | 39 years | |
| 11.5 | 11 years, five months | |
| 15w | 15 weeks | |
| 22d | 22 days |
The TestCemetery.java code should instantiate a Cemetery object, and the Cemetery constructor should read the cemetery.dat data file and instantiate a Tombstone object for each burial record. Use an ArrayList to hold the Tombstone objects. Then the test program should ask for a list (as an ArrayList) of everyone from Little Carter Lane. Finally, using an iterator, the average age should be calculated. Report your answer to one decimal place.
cemetery.dat Burial records text data file.
EasyReader.java Easy Reader java source.
| Copyright © 2010 by Asylum Computer Services LLC | Return to CS Labs |