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
A constructor that accepts one argument of a dissimilar type.

given number is prime or not

I need help with virtual memory manager implementation in C

Define the Bitwise-Exclusive-OR Operator: ^: The bitwise-exclusive-OR operator (^) compares every bit of its first operand to the corresponding bit of its second operand. If on


Q: What are User Defined data types? C supports an extraordinary feature known as "type definition" that permits users to define an identifier that would represent an existing

Objective: Construct a C program that controls the UART, and is capable of displaying strings. Echo characters received on the UART to the LCD screen Outcome: A mess

Floating  literal They can be written in common decimal as well as scientific notation (floating point representation). By default it is of type double. F, L is applied only to

what is poiter

Write a C program to input five numbers and print them out on a new line e.g 5, 10, 15, 20, 25 displayed as   5   10   15   20   25 #include stdio.h   void main()   {