CS 101 Homework J4

Due: Friday, October 29, 2004 by 9:00 a.m.

 

The task in this homework is to implement and design the Medical Assistant programming project described at the end of chapter 5 (section 5.14, pages 235-238).  HOWEVER, we are using a modified flowchart, shown at the bottom of this page.

Download the file FeverDiagnosis.java.  This will be the one file you submit.  Your code will be added to constructor at the end of this file.  You will also need the Scanner.class file.

If the user selects y/y/n/y as the input (for questions about fever, coughing, wheezing, and headache, respectively), the program will output the following:

Symptoms:
* fever
* coughing
* headache

Diagnosis
Possibilities include viral infection

Another example of a sample run is given in the textbook.

 

The following variables are defined in the file:

 

The following methods are defined in the file