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

write c++ program to covert celsius degreee to fahrenheit. The program should re

ID: 3760829 • Letter: W

Question

write c++ program to covert celsius degreee to fahrenheit. The program should request the stating celsius value, the number of coversions to be made, and the increment between celsius values.

please use the following values:

starting celsius value: 30

number of conversions: 10

increment in celsius= +5

The display should have appropriate heading and list the celsius value and the corresponding fahrenheit value in a table format, use the format of your judgment.

use the relationship= (9.0/5.0)*celsius +32.0

Explanation / Answer

//This Program Will convert the Celsius Value to Fahrenheit By using The formula (9.0/5.0)*celsius +32.0

#include <iostream>
#include <conio.h>
#include "stdafx.h"
using namespace std;

int main()
{
   int counter=0;
   int numberConversion;
   float fahrenheit_temp,celsius_temp;
   int increment;
   cout << "Starting Celsius : ";
   cin>>celsius_temp;
  
   cout << "Enter Number of Conversions : ";
   cin>>numberConversion;
   cout << "Increment Value : ";
   cin>>increment;

   do //Using Do while loop to make autoIncrement in Celsius Value
   {
       fahrenheit_temp = (9.0/5.0)*celsius_temp + 32;
       //Printing the Value of Celsius Value and Converted Fahrenheit Value
       cout<<"Celsius Temperature: "<<celsius_temp<<" Converted Fahrenheit Temperature: "<<fahrenheit_temp<<" ";
       celsius_temp+=increment;
       counter++;


   }while(counter<numberConversion);


getch();

   return 0;
}