I have a practical exam, and I must do this assignment, so ifanyone can do anyth
ID: 3614148 • Letter: I
Question
I have a practical exam, and I must do this assignment, so ifanyone can do anything and send the file to me or show me thefigures in order to know how to do it. In either case, I amgoing to give you a good rating. Please, I need yourhelpLabVIEW : Construct a VI which will convert an input temperaturein either degrees Fahrenheit, degrees Celsius, Kelvin, orRankin to all of the other systems. The front panel should include a “choice”selector for the input temperature scale, a numeric control toinput the temperature and an appropriate set of numeric indicatorsto display the output. I have a practical exam, and I must do this assignment, so ifanyone can do anything and send the file to me or show me thefigures in order to know how to do it. In either case, I amgoing to give you a good rating. Please, I need yourhelp
LabVIEW : Construct a VI which will convert an input temperaturein either degrees Fahrenheit, degrees Celsius, Kelvin, orRankin to all of the other systems. The front panel should include a “choice”selector for the input temperature scale, a numeric control toinput the temperature and an appropriate set of numeric indicatorsto display the output.
Explanation / Answer
Dear.. public class Converter { public enum TemperatureUnit {Kelvin, Celsius, Fahrenheit, Rankine } private final double UnitsFforC = 1.8; private final double FreezeF = 32.0; private final double FreezeAbsC = 273.15; public double ConvertTemperature(double baseValue, TemperatureUnitsrcUnit, TemperatureUnit dstUnit) { if (srcUnit == dstUnit) { return baseValue; } double celsius; if (srcUnit==TemperatureUnit.Kelvin) { celsius = baseValue - FreezeAbsC; } else if (srcUnit==TemperatureUnit.Fahrenheit) { celsius = (baseValue - FreezeF) / UnitsFforC; } else if (srcUnit==TemperatureUnit.Rankine) { celsius = (baseValue / UnitsFforC) - FreezeAbsC; } else { celsius = baseValue; } double returnValue; if (dstUnit==TemperatureUnit.Kelvin) { returnValue = celsius + FreezeAbsC; } else if (dstUnit==TemperatureUnit.Rankine) { returnValue = (celsius + FreezeAbsC) * UnitsFforC; } else if (dstUnit==TemperatureUnit.Fahrenheit) { returnValue= (celsius * UnitsFforC) + FreezeF; } else { returnValue = celsius; } return (Math.floor((returnValue * 1000.0) + 0.5))/1000.0; } } }Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.