
Patrick B. answered 06/15/21
Math and computer tutor/teacher
class Temperature
{
protected double temperValue;
public Temperature( double tempFahrenheit) { temperValue = tempFahrenheit; }
public double Get() { return(temperValue); }
public double ToCelsius()
{
return(
(temperValue - 32)*5.0f/9
);
}
public double computeOutput()
{
double dblCelsiusReturn = ToCelsius();
System.out.println(" Celsius = " + dblCelsiusReturn + " : Fahrenheit = " + temperValue);
return(dblCelsiusReturn);
}
public Temperature(Temperature t) { this.temperValue = t.temperValue; }
@Override public String toString()
{
return(
(new Double(temperValue)).toString()
);
}
}
class OxygenSaturation
{
protected double pO2;
protected double SpO2;
protected double accuracy;
protected String name;
public OxygenSaturation( double partial_pressure_of_oxygen)
{
pO2 = partial_pressure_of_oxygen;
accuracy = 0.02;
name = null;
}
public double GetPartialPressureOfOxygen() { return(pO2); }
public String GetName() { return(name); }
public double GetSaturation() { return(SpO2); }
public double GetAccuracy() { return(accuracy); }
public void SetAccuracy( double x) { accuracy = x; }
public void SetName( String strName) { name = new String(strName); }
public double computeOutput()
{
double x = Math.pow(pO2,3)+150*pO2;
double t = 23400 * Math.pow(x,-1)+1;
return(
Math.pow(t,-1)
);
}
}
class MHealthMain
{
Temperature t = new Temperature(98.6);
//double pS02 = YOU NEED TO PROVIDE THE # !!!!!
OxygenSaturation mySo2 = new OxygenSaturation(pS02);
t.computeOutput();
mySo2.computeOutput();
}

Patrick B.
that would be the class that contains main(), which I will leave for you.06/15/21