Assignment3A: Diagnosis Checker: For years, patients have used websites like WebMD to pre-diagnosis themselves with a variety of illnesses before meeting with a doctor. As you might imagine, medical professionals believe this can lead to incorrect treatment. To combat this, a local hospital has asked you to develop a program that will help patients check if their symptoms match the online diagnosis. You will prompt the user to enter their illness. Based on this input, you will ask them if they are experiencing certain symptoms. Depending on their answer, your program will indicate if the Internet diagnosis is likely to be correct or not. The decision chart is shown below: ● . HGPS O Do they have brittle bones? If no, it is likely not HGPS . If yes, it is possibly HGPS Bokter Syndrome Do they have a Vitamin C deficiency? . If no, it is likely not Bokter Syndrome If yes, are they a sailor? . . Lupus • If no, it is likely not Bokter Syndrome If yes, it is possibly Bokter Syndrome

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Assignment3A:
Diagnosis Checker: For years, patients have used websites like WebMD to pre-diagnosis
themselves with a variety of illnesses before meeting with a doctor. As you might imagine,
medical professionals believe this can lead to incorrect treatment. To combat this, a local
hospital has asked you to develop a program that will help patients check if their symptoms
match the online diagnosis.
You will prompt the user to enter their illness. Based on this input, you will ask them if they are
experiencing certain symptoms. Depending on their answer, your program will indicate if the
Internet diagnosis is likely to be correct or not. The decision chart is shown below:
•
●
●
HGPS
0
Do they have brittle bones?
If no, it is likely not HGPS
■ If yes, it is possibly HGPS
Bokter Syndrome
O
Do they have a Vitamin C deficiency?
If no, it is likely not Bokter Syndrome
If yes, are they a sailor?
.
.
Lupus
.
If no, it is likely not Bokter Syndrome
If yes, it is possibly Bokter Syndrome
Transcribed Image Text:Assignment3A: Diagnosis Checker: For years, patients have used websites like WebMD to pre-diagnosis themselves with a variety of illnesses before meeting with a doctor. As you might imagine, medical professionals believe this can lead to incorrect treatment. To combat this, a local hospital has asked you to develop a program that will help patients check if their symptoms match the online diagnosis. You will prompt the user to enter their illness. Based on this input, you will ask them if they are experiencing certain symptoms. Depending on their answer, your program will indicate if the Internet diagnosis is likely to be correct or not. The decision chart is shown below: • ● ● HGPS 0 Do they have brittle bones? If no, it is likely not HGPS ■ If yes, it is possibly HGPS Bokter Syndrome O Do they have a Vitamin C deficiency? If no, it is likely not Bokter Syndrome If yes, are they a sailor? . . Lupus . If no, it is likely not Bokter Syndrome If yes, it is possibly Bokter Syndrome
O It is likely not Lupus
You may assume that the user will only enter valid input.
You must call the class Assignment3A and put it in a file called "Assignment3A.java".
"Assignment3A.cs", or "Assignment3A.cpp"
Hint: Nested IF statements will be helpful for this assignment.
Sample Output #1:
[WebMD Checker]
What is your suspected illness? HGPS
Do you have brittle bones? Y
It is possible that you have HGPS
Sample Output #2:
[WebMD Checker]
What is your suspected illness? HGPS
Do you have brittle bones? N
It is not likely that you have HGPS
Sample Output #3:
[WebMD Checker]
What is your suspected illness? Lupus
It is not likely that you have Lupus
Sample Output #4:
[WebMD Checker]
What is your suspected illness? Bokter Syndrome
Do you have a Vitamin C deficiency? N
It is not likely that you have Bokter Syndrome
Sample Output #5:
[WebMD Checker]
What is your suspected illness? Bokter Syndrome
Do you have a Vitamin C deficiency? Y
Are you a sailor? N
It is not likely you have Bokter Syndrome
Transcribed Image Text:O It is likely not Lupus You may assume that the user will only enter valid input. You must call the class Assignment3A and put it in a file called "Assignment3A.java". "Assignment3A.cs", or "Assignment3A.cpp" Hint: Nested IF statements will be helpful for this assignment. Sample Output #1: [WebMD Checker] What is your suspected illness? HGPS Do you have brittle bones? Y It is possible that you have HGPS Sample Output #2: [WebMD Checker] What is your suspected illness? HGPS Do you have brittle bones? N It is not likely that you have HGPS Sample Output #3: [WebMD Checker] What is your suspected illness? Lupus It is not likely that you have Lupus Sample Output #4: [WebMD Checker] What is your suspected illness? Bokter Syndrome Do you have a Vitamin C deficiency? N It is not likely that you have Bokter Syndrome Sample Output #5: [WebMD Checker] What is your suspected illness? Bokter Syndrome Do you have a Vitamin C deficiency? Y Are you a sailor? N It is not likely you have Bokter Syndrome
Expert Solution
steps

Step by step

Solved in 5 steps with 5 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage