The Artima Developer Community
Sponsored Link

Java Answers Forum
Need some help. How do I tackle this?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Yoni

Posts: 1
Nickname: freeyoni
Registered: Sep, 2002

Need some help. How do I tackle this? Posted: Sep 23, 2002 7:35 PM
Reply to this message Reply
Advertisement
construct a java application that will assist in treating HIV/AIDS patients. Your application file should be called PatientUser.java . Information about HIV/AIDS can be found at www.aids.org/FactSheets/411-guidelines.html

and in particular you should use the When to Start Treatment section to write code for the recommended treatment. You can look up additional information on this or other web sites about HIV/AIDS (a good one is http://www.cdc.gov/hiv/pubs/facts.htm).

The application will have two classes: one called Patient and one called PatientUser, which will contain the main method. The Patient class will have at least 3 instance variables: one to keep track of T-cells, one to keep track of the viral load, and a boolean that indicates if the patient has symptoms of HIV/AIDS. You may put in additional instance variables and methods to interface with them if you wish. This class will include at least two constructors: one that initially indicates the patient is healthy and puts in reasonable values for T-cells and viral load (you?ll need to do some research) and another that uses three parameters to set the three instance variables.
Methods for the Patient class will include setting and getting all the instance variables and printing all the information about the patient. At least some of the information for the patient should be through the keyboard. In your prompt for T-cells or viral load you would need to give the user hints about the proper range for those values.
Write another method for this class that recommends a treatment for the patient based on the values of the instance variables (see the web reference above). You will need to do a bit of research to see which drugs are recommended (if the patient should begin taking drugs).
In your documentation at the beginning of the program, in addition to giving a description of the program, give some data that you used to test your program to make sure you covered all possibilities for treatment. As usual, you should also include documentation throughout the program.
The PatientUser class?s main method should include instantiation of at least two patients.

Topic: String to Integer Previous Topic   Next Topic Topic: Compatibly problem Mac and Window

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use