| CS202 Assignments |
| [Syllabus] [Labs] [Projects] [Bulletin Board] [Class Notes] [Tools] [Grades] |
|
Project 2
Specification By Jenny Chang Dental Application
Phase 2 File Input/Output For the
second part of this project, you will store all the information of your objects
form Patients, and Visits classes in files. Hints: In your
main application, you will have an extra methods called loadPatientData() and
loadVisitsData() that will retrieve the data from files If there is any updates or new data, you will
call a methods called storeData() and updateData() that will store the
information in the corresponding files.
Implement additional methods as you see fit. You will
retrieve all your patients from the patients file. Each patient in the file may or may not have
any visits. Patient.dat id|fname|lname|address|city|state|zip|country|
2|John|Doe|193
Los Robles Blvd.|Pasadena|CA|91738|USA|
Each
patients visits will be in a folder called Visits with the patient id. Visits/1.dat Description|cost|date
of visit|
Checkup|50.38|8/1/2003|
Cleaning|30.30|10/20/2003|
Visits/2.dat Description|cost|date
of visit|
Braces|1000|7/11/2002|
Cleaning|30.30|10/30/2003|
Submission:
|