Computers

posted by .

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?

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Physics

    I have been given this question and with very little knowledge of physics and a book and flex studies that I am not finding very explanitory. I am not sure I am on the correct path as the vlaues I have seem very large. I would appreciate …
  2. programming

    Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include a method that sets all the data files and another that prints the values for each data field. Create the class diagram …
  3. programming

    Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include methods to set and get the values for each data field. Also include a displayInfo() method that displays each …
  4. psudoecode

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  5. pseudocode

    Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set …
  6. Programming Logic and Design

    Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set …
  7. Programming logic design

    Design a class named DVD that has fields for the DVD category , tittle and price include methods to set and get the value for each field write pseudocode that definnes this class.
  8. Program Design and Development

    Design a class called SimpleCalculator using psudoecode that contains public methods named add(), subtract(). Each of the methods accepts two numeric arguments and returns a number that represents the result of the appropriate arithmetic …
  9. programming

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  10. programming

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …

More Similar Questions