This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
The program conv2.cpp performs the calculation of the temperature expressed in Fahrenheit degrees for [0,20] range of Celsius degrees. It demonstrates the usage of simple functions and loop structure (e.g., for) and it returns the Fahrenheit temperature expressed as float value.
Input data: the variable “i” holds the value for the Celsius temperature from the [0,20] range. It is not provided by user’s input, but it is known in advance instead.
Output data: the variable “f” holds the result of the calculation for the Fahrenheit temperature for each value from the [0,20] range of the Celsius temperature.
Processing: the calculation of the Fahrenheit temperature is done using the formula:
F = 9/5C + 32...
This is only a preview of the solution. Please use the purchase button to see the entire solution