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

using namespace std;
int main  (  )


int fahrenheit  =  0;
float celsius;

cout<<"fahrenheit  \tcelsius"<

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


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


}  // 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
A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concate

Should I call a destructor explicitly on a local variable?

A: Use references when you can use, and use pointers when you have to. References are generally preferred over pointers whenever you don't require "reseating". Usually this mean

write a function named "fact"that takes one integer arguments,call them "num" and returns as ..............

Define the Relational Operator in c language? The Relational operators refer to the relationships that values can have with one another and they are used to compare two operand

Comments Comments are integral part of every program . Comments help in coding, debugging and maintaining a program . The compiler ignores them. They should be used liberally i

The absolute land-speed record of 763.035 MPH (Mach 1.02) was set in October 15 1997 by a jet-powered car called Thrust SSC in the Black Rock Desert of northern Nevada. The team th

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid