C++ programming windows console application!!! Write a program that uses a for l
ID: 3924543 • Letter: C
Question
C++ programming windows console application!!!
Write a program that uses a for loop to display the temperature conversions for a range of centigrade temperatures to their fahrenheit equivalents. The user will be able to select the starting centigrade value arid the ending centigrade value Section 4-Week delta Lab Exercise #3//c2f.cpp//Auther//Date://Cdsplay a range of centigrade temperatures to their fahrenheit eqivalents #includeCiostrearrt> #include #include using namespace std;//declare variables return 0;}Explanation / Answer
#include <iostream>
#include <iomanip>
#include<string>
using namespace std;
int main() {
//declare variables
double start,end;
cout << "Input starting value of temperature in celcius : ";
cin >> start;
cout << "Input ending value of temperature in celcius : ";
cin >> end;
int i = 0;
for(i=start;i<=end;i++)
{
cout << i << "C " << i*1.8+32 << "F" << endl;
}
return 0;
}//End of Main function
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.