TestCheckUp - class CheckUp cfw private int patient private int systolic private int diastolic private int blood private double ldl private double

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
class CheckUp { private int patient; private int systolic; private int diastolic; private int blood; private double ldl; private double hdl; computeRatio(ldl,hdl); explainRatio(hdl); CheckUp() { patient = 2929; systolic = 130; diastolic = 80; blood = systolic/diastolic; } CheckUp() { patient = 5000; systolic = 125; diastolic = 95; blood = systolic/diastolic; } CheckUp() { patient = 4444; systolic = 110; diastolic = 65; blood = systolic/diastolic; } CheckUp() { patient = 7744; systolic = 150; diastolic = 75; blood = systolic/diastolic; } public void setPatient(int p) { patient = p; } public int getPatient(int p) { return p; } public void setSystolic(int s) { systolic = s; } public int getSystolic(int s) { return systolic; } public void setDiastolic(int d) { diastolic = d; } public int getDiastolic(int d)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
{ return diastolic; } public void setBlood(int b) { blood = b; } public int getBlood(int b) { return blood; } public void setLDL(int l) { ldl = l; } public double getLDL(double l) { return ldl;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/04/2010 for the course COMPUTER S 106 taught by Professor Moore during the Spring '08 term at Clark Atlanta.

Page1 / 3

TestCheckUp - class CheckUp cfw private int patient private int systolic private int diastolic private int blood private double ldl private double

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online