Respuesta :
Answer:
double KelvinToCelsius(double valueKelvin) {
double valueCelsius;
valueCelsius = valueKelvin - 273.15;
return valueCelsius;
}
Explanation:
Create a function called KelvinToCelsius that takes a double parameter, valueKelvin
Inside the function:
Declare a new variable valueCelsius to hold the value in Celsius
Convert the passed value into Celsius value using the formula
Return the valueCelsius
Functions are set of related codes, that are named and grouped in a block, where they perform as a unit code.
The missing part of the program in C++ is as follows:
double KelvinToCelsius(double valueKelvin) {
double valueCelsius = valueKelvin - 273.15;
return valueCelsius;
}
The flow of the above code segment is as follows
- The first line defines the function
- The second line calculates valueCelsius by subtracting 273.15 from valueKelvin
- The last line returns the calculated temperature in degree Celsius
At the end of the function, the function returns the equivalent temperature in degree Celsius to the main method
Read more about functions at:
https://brainly.com/question/15820683