Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

plz change the following C++ code to C #include <iostream> using std::cout; usin

ID: 3615022 • Letter: P

Question

plz change the following C++ code to C


#include <iostream>
using std::cout; using std::endl;
int celcius( int ); int fahrenheit( int );
int main() { cout << "Fahrenheit equivalents of Celciustemperatures: " << "Celcius Fahrenheit ";
for ( int i = 0; i <= 100; ++i ) cout << i << " " << fahrenheit( i )<< ' ';
cout << " Celcius equivalents of Fahrenheittemperatures:" << " Fahrenheit Celcius ";
for ( int j = 32; j <= 212; ++j ) cout << j << " " << celcius( j )<< ' ';
cout << endl;
return 0; }
int celcius( int fTemp ) { return static_cast< int > ( 5.0 / 9.0 * ( fTemp -32 ) ); }
int fahrenheit( int cTemp ) { return static_cast< int > ( 9.0 / 5.0 * cTemp + 32); }


#include <iostream>
using std::cout; using std::endl;
int celcius( int ); int fahrenheit( int );
int main() { cout << "Fahrenheit equivalents of Celciustemperatures: " << "Celcius Fahrenheit ";
for ( int i = 0; i <= 100; ++i ) cout << i << " " << fahrenheit( i )<< ' ';
cout << " Celcius equivalents of Fahrenheittemperatures:" << " Fahrenheit Celcius ";
for ( int j = 32; j <= 212; ++j ) cout << j << " " << celcius( j )<< ' ';
cout << endl;
return 0; }
int celcius( int fTemp ) { return static_cast< int > ( 5.0 / 9.0 * ( fTemp -32 ) ); }
int fahrenheit( int cTemp ) { return static_cast< int > ( 9.0 / 5.0 * cTemp + 32); }
#include <iostream>
using std::cout; using std::endl;
int celcius( int ); int fahrenheit( int );
int main() { cout << "Fahrenheit equivalents of Celciustemperatures: " << "Celcius Fahrenheit ";
for ( int i = 0; i <= 100; ++i ) cout << i << " " << fahrenheit( i )<< ' ';
cout << " Celcius equivalents of Fahrenheittemperatures:" << " Fahrenheit Celcius ";
for ( int j = 32; j <= 212; ++j ) cout << j << " " << celcius( j )<< ' ';
cout << endl;
return 0; }
int celcius( int fTemp ) { return static_cast< int > ( 5.0 / 9.0 * ( fTemp -32 ) ); }
int fahrenheit( int cTemp ) { return static_cast< int > ( 9.0 / 5.0 * cTemp + 32); }
#include <iostream>
using std::cout; using std::endl;
int celcius( int ); int fahrenheit( int );
int main() { cout << "Fahrenheit equivalents of Celciustemperatures: " << "Celcius Fahrenheit ";
for ( int i = 0; i <= 100; ++i ) cout << i << " " << fahrenheit( i )<< ' ';
cout << " Celcius equivalents of Fahrenheittemperatures:" << " Fahrenheit Celcius ";
for ( int j = 32; j <= 212; ++j ) cout << j << " " << celcius( j )<< ' ';
cout << endl;
return 0; }
int celcius( int fTemp ) { return static_cast< int > ( 5.0 / 9.0 * ( fTemp -32 ) ); }
int fahrenheit( int cTemp ) { return static_cast< int > ( 9.0 / 5.0 * cTemp + 32); }

Explanation / Answer

please rate - thanks #include #include int celcius( int ); int fahrenheit( int ); int main() { printf( "Fahrenheit equivalents of Celciustemperatures: Celcius Fahrenheit "); for ( int i = 0; i