Write Application Dodiagnosis Computer Acts Doctor User Acts Patient Computer Prompts User Q37043145

You are to write the application DoDiagnosis, where the computeracts as a doctor and the
user acts as a patient. The computer prompts the user in turn forfour different symptoms (see
sample runs). If the user has all 4 symptoms, the computer’sdiagnosis is “very sick.” With 3
symptoms the computer’s diagnosis is “sick.” With 2 symptoms, thediagnosis is “may be sick,”
and with 1 symptom, the diagnosis is “may be stressed.” If thereare no symptoms, the computer
lets the user know he or she is in good health.
Run the application for the 8 sample user-machine interactions asshown below. Your code
should be such that the text

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.