Displays the temperature conversion chart on the screen, C/C++ Programming

Write a program that displays the following temperature conversion chart on the screen as follows below.

Hint: c = 5.0/9.0 * (f - 2)

C = degrees in Celsius

F = degree in Fahrenheit

 

Fahrenheit                      Celsius

**

0                                    -17.68

20                                    -6.67

40                                     4.44

...                                       ...

...                                       ...

300                                  148.89

#include 
using namespace std;
int main  (  )

{

int fahrenheit  =  0;
float celsius;

cout<<"fahrenheit  \tcelsius"<

cout<<"***              ***"<

while(fahrenheit<=300)
{

celsius  =  5.0/9.0  *  (fahrenheit  -  32);

cout<

}  // end of while
return  0;

}  // end of main

Posted Date: 8/21/2012 11:21:48 AM | Location : United States







Related Discussions:- Displays the temperature conversion chart on the screen, Assignment Help, Ask Question on Displays the temperature conversion chart on the screen, Get Answer, Expert's Help, Displays the temperature conversion chart on the screen Discussions

Write discussion on Displays the temperature conversion chart on the screen
Your posts are moderated
Related Questions

algorithem of compound interest

How to write C program (interest calculator) the simple interest on a loan is calculated by the formula interest=principal*rate*days/365; ?



C program to Print Fibonacci series upto n using recursion: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many term

Project Description: We own proprietary software which long ago had Copyminder protection added. We no longer have the source code or a relationship with the original coder and

Friend for Overloading Operators Sometimes friend functions cannot be avoided. For example with the operator overloading. Consider the following class that have data members to

A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

find the occurence of zy in the final string