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
The video game machines at your local arcade output coupons depending on how well you played the game, you can redeem 10 coupons for a candy bar, 6 coupons for .a medium soft drink

Define Static Storage Class in C Programming? The Static declarations have distinct and important uses. This allows the local variable to keep its previous value when the block

c program to count the number of occurances of the string in padovan''s string

Can I free() pointers allocated  along with new? Can I delete pointers allocated along with malloc()? A: No. It is completely legal, moral, and wholesome to employ malloc() a

A: Provide a friend operator class Base { public: friend std::ostream& operator ... protected: virtual void printOn(std::ostream& o) const; }; inline std::ostr

I need Asp .net Facebook app project completion Project Description: We are urgently seeking a few remaining items to be completed, and the project to be deployed to live.

A Constructive Example Consider an example , to model a user-defined data type for  strings. The object simulates a character array ( string ) using a character pointer and an

what is the function of spanning tree in graph algorithm?

write a promgram using object oriented peramid

How to Define a Structure? Structure declarations are rather more complicated than array declarations, ever since a structure must be defined in terms of its individual members