I need help starting this program im required to do for class. I'm going to type up the requirements. All i need is someplace to start and some hints.
Write a program to produce two charts: one shwoing The Fahrenheit temperatures corresponfing to the Celsisu temperatures from 0 to 200 in increments of 5, and one showing the Celsius tmepratures corresponding to the Fahrenheit temperatures from 0 to 400 in increments of 10. The general formula relating Celsius (C) and Fahrenehit (F) is F=(9/5)C + 32.
You must write two functions:
1. int Celsius(int), which converts a Fahrenheit temperature to Celsius
2. int Fahrenheit(int), which converts a Celsius temperature to Fahrenheit
Neither function may do any output. You should use these functions in for loops to generate the two charts.
Each of the two fucntions takes an integer as its argument. So in the body of the function, change the number to a float, do the calculation, and then change it back to an integer. Do not use any coercions. Be sure to take care of any "rounding errors" in the calculations of the temperatures (consider adding .5 to a positive number and subtracting .5 from a negative number).
All constant values must be declared as consts.
All output must be to file ass3.run.
So far ive got For statements i can use but other than that i can not figure out how to start it.
Here are the For statements
for(int I=0; i<=200, i+=5) This for statement is for Celsius to fahrenheit.
For(int j=0; j<=400; i+=10) This one is for Fahrenheit to Celsius.
Thanks for any help.
Shawn