Thursday
July 2, 2015

Homework Help: Computers

Posted by Andreah on Wednesday, April 18, 2007 at 6:54pm.

Create a class named Checkup with fields that hold a patient number, two blood pressure figures (systolic and diastolic), and two cholesterol figures (LDL and HDL). Include methods to get and set each of the fields. Include a method named computeRatio() that divides LD cholesterol by HDL cholesterol and displays the result. Include an additional method named ExplainRatio() that explains that HDL is known as “good cholesterol” and that a ration of 3.5 or lower is considered optimum. Include the appropriate comments including your name, date, and chapter information.

Create a class named TestCheckup whose main() method declares four Checkup objects. Provide values for each field for each patient. Then display the values. Blood pressure numbers are usually displayed with a slash between the systolic and diastolic values. (Typical numbers are values such as 110/78 or 130/90.) With the cholesterol figures, display the explanation of the cholesterol ratio calculation. (Typical numbers are values such as 100 and 40 or 180 and 70.) Include the appropriate comments including your name, date, and chapter information.



What is your question on this?

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Members