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
In which condition a template a better solution than a base class? A: While you are designing a generic class to contain or manage objects of other types, while the format & beh

3. Write a program to encrypt and decrypt strings of characters using the following ciphers: a) Caesar cipher b) Vigenere cipher c) Matrix transposition cipher Your program shoul

#questioA 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 concatenation. For a str

payment system, in c++ only..just use the printf or scanf.please


How does an ERP System facilitates better decision making?

Program of function overloading: class vector{                 private :                 int v[3];                   public:                 /*friend istream &

#q•Design and code a new function that accepts as parameters the gross pay by value and the federal tax, state tax, local tax, SS tax, and net Pay by reference. Calculate the taxes

Is it possible to pass an entire structure to functions? Yes, it's possible to pass an entire structure to a function in a call by method style. Some programmers prefer to decl

Create an array of Strings and fill it with some interesting text, such as vacation destinations, album names, or weapon names from a CRPG. Display three elements of the array on t