question archive This is C++ 1 ) Create a array of Fahrenheit temperatures, as follows int fahr []= {0,1,2,3,4,5,6,7,8,9,10,32,33,34,35,36,37,38,39,40}; 2) Create a function convertFarh(int fahr) that converts Fahr to Celsius, a function such as you did in class, outside of main(), above it
Subject:Computer SciencePrice:4.86 Bought8
This is C++
1 ) Create a array of Fahrenheit temperatures, as follows
int fahr []= {0,1,2,3,4,5,6,7,8,9,10,32,33,34,35,36,37,38,39,40};
2) Create a function convertFarh(int fahr) that converts Fahr to Celsius, a function such as you did in class, outside of main(), above it.
3) Create a loop inside main() function, that prints side by side Fahrenheit temperatures from the array above (in a similar way how you printed an array in class) and Celsius temperature by calling function convert(...) in the loop to get a matching Celsius temperature for each Fahrenheit temperature that you print.
Purchased 8 times