Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA GUI- OOP Your code structure will be suitable for object oriented programming. Please don't make the code structure complicated. can you explain the code

JAVA GUI- OOP

Your code structure will be suitable for object oriented programming.

Please don't make the code structure complicated.

can you explain the code you wrote (create comment lines. (explain methods)

This project needs to be done urgently, can you do it immediately?(Like in 2-4 hours) How long can you complete? Can you inform me? Can you write a comment.

Please make sure the code you wrote is correct, Thank you.

image text in transcribed

Relationships between classes:

There is an IS-A Relationship between the classes MemoryDeficit, Alzheimer and Amnesia that can be seen from the class diagram.

There is a HAS-A Relationship between Alzheimer and ClinicalCase classes and a HAS-A Relationship between Amnesia and ClinicalCase classes

Implement your classes according to these important notifications given above.

Some information related with classes:

For all non-visual classes, there is no default value for the non-static data members.

Write only the necessary accessor and mutator methods inside the classes!! You may add methods other than the given ones, IF you are going to use them!!

toString() method for all the classes: will return the necessary data field information related with the implemented class.

improveMemory() method is overridden in child classes (Alzheimer and Amnesia). For Alzheimer, it returns Solve Sudoku puzzles! For Amnesia, it returns Look old photos!.

PART B: Implement your GUI!!

Create a frame in your project named as MemoryApp.

Frame-1: This frame is the default start up frame. At first, users will enter the id of the deficit and choose the type of the memory loss from the combo box. Then, the user will enter the information of the clinical cases representing the patients.

Be careful while entering the name and surname of the patient. Do not forget to separate them by using comma (,) after getting from the user.

The deficit type divided into two parts as Amnesia and Alzheimer. Use radio buttons to differentiate them and to open related panels.

You may use different number of panels, however do not forget to implement the ones which have the titled border. User cannot edit text areas.

image text in transcribed

Figure -2 and 3: Enter the necessary information, choose the radio button Amnesia in order to enter information about this type of memory deficit.

image text in transcribed

image text in transcribed

image text in transcribed

The value of the deficit id will be sent to another combo box at the right side of the frame, next to the Search by deficit id button.

image text in transcribed

Figure -6-7:

Display Deficit button: in order to display information about the memory deficit types use Display Deficit button. You are supposed to use InfoClasss getAllMemory() method.

Use radio buttons to differentiate the memory deficit types.

If the user selects Amnesia radio button and presses the Display Deficit button, all the information about this deficit type will be displayed. You are supposed to use InfoClasss static getAmnesia() method to do this.

image text in transcribed If the user selects Alzheimer radio button and presses the Display Deficit button, all the information about this deficit type will be displayed. You are supposed to use InfoClasss static getAlzheimer() method to do this.

Be careful, display deficit button will display all the amnesia information or all the Alzheimer information hold in the array list.

image text in transcribedFigure -8:

Total Deficits button:

When the user presses Total Deficits button, in the second text area the information about the total numbers of Total Deficits, Total Amnesics and Total Alzheimers will be appeared. You are supposed to use InfoClasss showTotalMemory() method which calls the MemoryDeficit classs static method of getTotalDeficit(). If you need similar static methods for the other total values, add them too.

Since, we just entered two information, the number of Total Deficits is 2, Total Amnesics is 1 and the number of Total Alzheimers is 1.

For every added memory deficit whether Amnesia or Alzheimer, the values here must be increment.

image text in transcribed

Figure -9-10:

Search by deficit id button:

The users can search both memory deficit types by using the deficit ids. Your search process will be done by InfoClasss static method of searchMemory() which requires a string id as a parameter.

When the user selects an id from the combo box and presses the Search by deficit id button, the information about that deficit, should appear in the text area.

image text in transcribedimage text in transcribed

image text in transcribed

PART A: Implement your classes!! Your objective is to implement a program to understand the memory deficits of the clinical cases. Memory Deficit is divided into two parts as Alzheimer and Amnesia. Alzheimer and Amnesia are all memory deficits. Each has its own patient/s or we can just call them as clinical cases. Improvement > +improveMemory (): String Java Class Diagram: MemoryDeficit (abstract) #deficit_1d: String #memory_loss: String #totalDeficit:int InfoClass +memorvArrayList:ArrayList InfoClass.java MemoryApp.java ClinicalCase ClinicalCase.java Improvement Improvement.java Memory Alzheimer.java Amnesia, java MemoryDeficit.java Libraries PART A: Implement your classes!! Your objective is to implement a program to understand the memory deficits of the clinical cases. Memory Deficit is divided into two parts as Alzheimer and Amnesia. Alzheimer and Amnesia are all memory deficits. Each has its own patient/s or we can just call them as clinical cases. Improvement > +improveMemory (): String Java Class Diagram: MemoryDeficit (abstract) #deficit_1d: String #memory_loss: String #totalDeficit:int InfoClass +memorvArrayList:ArrayList InfoClass.java MemoryApp.java ClinicalCase ClinicalCase.java Improvement Improvement.java Memory Alzheimer.java Amnesia, java MemoryDeficit.java Libraries

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

Students also viewed these Databases questions

Question

what was the point of homeland security and the terrorism threat

Answered: 1 week ago