Question: You are to write a program that will help diagnose the symptoms of an earache. Your program will the specified questions and suggest a diagnosis
You are to write a program that will help diagnose the symptoms of an earache. Your program will the specified questions and suggest a diagnosis according to the following mapping of questions/diagnosis. Accept true and false from the user. You must use a nested if/else structure. Name your program MedicalDiagnosis.java The structure of the logic for the diagnosis is: MedicalDiagnosis_Design.pdfPreview the document If you have difficulty seeing the logic of the design above this image might help: FlowChartDiagnosis.jpg Name your program MedicalDiagnosis.java
Flowchart:

Structure:

Here are three examples of interaction with the user and output from your program.
Example #1: Does the pain get worse when you pull on your earlobe? Please enter true or false.
false
Do you have a blocked feeling in your ear that cannot be cleared by swallowing? Please enter true or false.
false
Is there a sticky yellow-green discharge? Please enter true or false.
false
Do you have a cold? Please enter true or false.
false
Do you also have pain in your teeth or jaw? Please enter true or false.
false
Unable to suggest a diagnosis - Contact your physician.
Example #2: Does the pain get worse when you pull on your earlobe? Please enter true or false.
true
You probably have an infection of the outer ear canal. Example #3: Does the pain get worse when you pull on your earlobe? Please enter true or false.
false
Do you have a blocked feeling in your ear that cannot be cleared by swallowing? Please enter true or false.
false
Is there a sticky yellow-green discharge? Please enter true or false.
true
You may have an infection of the outer ear canal or middle ear.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
