Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids.
C program to Convert Celsius to Fahrenheit. Fahrenheit and Celsius are two unit for measure temperature. We have standard formula to Convert Celsius to Fahrenheit using this formula you can change temperature Fahrenheit to Celsius. /. Two common temperature scales are Fahrenheit and Celsius. The boiling point of water is 212° F, and 100° C. The freezing point of water is 32° F, and 0° C. Assuming that the relationship bewtween these two. temperature scales is: F = 9/5C+32,. Celsius = (f-32). 5/9. Write a C program that will ask for a temperature in Fahrenheit and display it in Celsius. Formula for Farenheit to celsius conversion: C = F-32 / 1.8 Here C - Celsius and F - Fahrenheit. Code for Program for Fahrenheit to Celcius in C Programming /. www.DailyFreeCode.com Download Projects, Sourcecodes, Tips and Tricks, Interview FAQs.
- 4 Contributors
- forum 4 Replies
- 681 Views
- 8 Months Discussion Span
- commentLatest Postby Andreas5Latest Post
Recommended Answers
[QUOTE=vinochick;1056620]Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids.
[CODE]#include
using namespace std;
//function prototypes
void getFahrenheit();
void calcCelsius();
void displayCelsius();
int main()
{
//declare variables
int …
C++ Celsius To Fahrenheit Program
Jump to PostAll 4 Replies
Fbody682
Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids.
What are you getting from fahrenheit()? Put it in there as a reference argument/parameter...
Same with calcCelsius(), except you will need 2 arguments/parameters. One will have to be a reference, the other can be a value pass or a reference, it doesn't really matter. I'll leave it to you to decide which is which.
Dev C Fahrenheit To Celsius Us Converter
For displayCelsius() all that you have to do is send the celsius value. You don't need a reference because you aren't trying to modify it.