CS202 Assignments
[Syllabus] [Labs] [Projects] [Bulletin Board] [Class Notes] [Tools] [Grades]

Dental Payment Application

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|…

1|Jenny|Chang|5151 State University Dr.|Los Angeles|CA|90032|USA|…

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:

  • Demo presentation during lab time
  • Email zipped file containing the sourcecode for your application to jchang7@calstatela.edu. Make sure to name your zip file in this format firstname_lastname_proj2.zip (eg. jenny_chang_proj2.zip). In the email, set the subject as "CS202 first and last name - Proj#2" (eg. CS202 Jenny Chang - Proj#2)