Java Programming

JAVA  – Phase IV  

In this phase of the project, you are to finish your report section.  You are to create the following reports:

NOTE: Change the names of the reports in your code to the names in bold below

·      Report 5 –Doctor and Patients List – Print each Doctor’s information along with the list of his patients (these are the primary doctors)

·      Report 6 –  Surgery history for ONE Patient–  Print one specific patient and the surgeries he/she had, Must also include the total payments he/she paid for his surgeries

·      Report 7 – Surgery history for ALL Patients – For all Patients, print the patient information along with the details of their surgeries, including the Doctor names.  Must also include the total payment each patient paid for their surgeries

·      Report 8- Surgery history for ALL Doctors – For all Doctors, print the doctor information along with the details of their surgeries, including the patient names.  Must also include the total payments they got for their surgeries

·      Report 9 –  Patients NOT having surgery – print all patient information if they did not have surgery, including the name of their Primary doctor

Create a word document with your name and date at the top.   Copy your code next. Copy a screen shot of each report running next in the document.

Upload this document to blackboard.

Contents of patientj.dat:

1111#John#Smith#18#Male#12#

2222#Mary#Jones#19#Female#12#

3333#Dean#Johnson#18#Male#14#

4444#Nick#Green#21#Male#2016#

5555#Karen#Hilling#22#Female#18#

6666#Jane#Gardner#21#Female#20#

7777#Mart#Gallo#19#Male#20#

8888#Hanson#Andrew#18#Male#22#

9999#Chris#Johns#19#Male#38#

1212#Laura#Manis#20#Female#24#

2323#Bonnie#Lacey#21#Female#24#

3434#Stacy#Abrams#18#Female#28#

4545#Robert#Brown#19#Male#26#

Contents of doctorc.dat:

12#Thomas#Smith#Cardiology#

14#Gregory#Thompson#Ophthalmology#

16#Allen#Atkins#Radiology#

18#Eric#Brown#Pulmonary#

20#Chris#Jones#Dermatology#

22#James#Gallo#Ophthalmology#

24#William#Johnson#Pediatrics#

26#Mary#Gregory#Ophthalmology#

28#Jane#Hilling#Radiology#

30#Cara#George#Cardiology#

32#Mia#Baugh#Pediatrics#

34#Max#Borrows#Cardiology#

36#Peter#Johns# Pulmonary#

doctors

12#Thomas#Smith#Cardiology#

14#Gregory#Thompson#Ophthalmology#

16#Allen#Atkins#Radiology#

18#Eric#Brown#Pulmonary#

20#Chris#Jones#Dermatology#

22#James#Gallo#Ophthalmology#

24#William#Johnson#Pediatrics#

26#Mary#Gregory#Ophthalmology#

28#Jane#Hilling#Radiology#

30#Cara#George#Cardiology#

32#Mia#Baugh#Pediatrics#

34#Max#Borrows#Cardiology#

36#Peter#Johns# Pulmonary#

patient

1111#John#Smith#18#Male#12#

2222#Mary#Jones#19#Female#12#

3333#Dean#Johnson#18#Male#14#

4444#Nick#Green#21#Male#2016#

5555#Karen#Hilling#22#Female#18#

6666#Jane#Gardner#21#Female#20#

7777#Mart#Gallo#19#Male#20#

8888#Hanson#Andrew#18#Male#22#

9999#Chris#Johns#19#Male#38#

1212#Laura#Manis#20#Female#24#

2323#Bonnie#Lacey#21#Female#24#

3434#Stacy#Abrams#18#Female#28#

4545#Robert#Brown#19#Male#26#

surgary

1111#12#Heart#15000#

2222#22#Eye#800#

3333#18#Lung#12000#

5555#22#Eye#1000#

6666#24#Arm#2000#

1111#26#Eye#985.90#

8888#30#Heart#5000.89#

1212#12#Heart#2500#

4545#18#Lung#4500.65#

2323#26#Eye#789.50#

1212#14#Eye#8000#

4545#12#Heart#35000#

5555#36#Lung#4500.85#

2222#24#Stomach#16000#

3333#36#Lung#9000.90#

3333#34#Heart#23000#

4444#34#Heart#19000#

3434#22#Eye#1100#

4444#22#Eye#1200#

3333#22#Eye#800#

4545#22#Eye#900#

6666#22#Eye#1000#

8888#22#Eye#985.90#

1212#22#Eye#888.90#

2323#22#Eye#900#

Leave a Comment

Your email address will not be published. Required fields are marked *

Java programming

Enhance your UML Class Diagram for your Survey class to include an attribute, which is a grid to log survey results. It is expected that at most you will have 10 respondents to 10 survey questions. You must use a 2-dimensional array to represent a grid.

The Survey class should have a displaySurveyResults() method that prints out the name of the survey and displays the entire grid that holds the results. The Survey class should have a displayQuestionStats() method that takes an int value that is the question number and displays the responses entered so far for that question in tabular form. Your Survey class should store 10 questions in an array of Strings. Your class should have an enterQuestions() method that allows the user to enter 10 questions for a 10-question survey. This should be done prior to the survey application starting a survey. Create a method in your Survey class called “logResponse().” This method should take three arguments. The first argument is an int value (which is the respondent id); the second argument is an int value (which is the question number); and the third argument is an int value, which is the response entered (value from 1 to 5). This method should enter the response into the right location on the survey grid that corresponds to the respondent ID and the question number.

Implement the enhancements to your Survey class according to the requirements presented above. Your Survey class will include an attribute, which is a matrix to log survey results. It is expected that at most you will have 10 respondents to 10 survey questions. You must use a 2-dimensional array to represent a matrix.

To accomplish the task of further developing your Survey class from your updated UML Class Diagram, you will need to implement the following attributes and methods:

2 dimensional array to hold the respondents’ results displaySurveyResults() method with an int parameter String array to hold 10 questions enterQuestions() method logResponse() method with 3 parameters

Update your Design Document for this Phase and corrections needed from prior Phases.

Submit your Design Document and zipped NetBeans project.


Leave a Comment

Your email address will not be published. Required fields are marked *

Is this question part of your Assignment?

Get expert help

Girl in a jacket


We are a team of academic consultants with extensive experience in writing academic papers for college students in the US, Canada, UK, AU, and other parts of the world.

We help students with both technical and non-technical assignments across all majors & academic disciplines.

Unlike what our name suggests, we research and draft everything word for word. We do not use AI or any rewriting tool! We provide Turnitin reports for AI & Turnitin alongside every paper.

Need help? Send us your assignment now!

description here description here description here