I am having trouble with this program. For homework we are supposed to write a program that will reads user input in Fahrenheit, converts it to celcius, then puts that data in a file with a list and average. We should have the program, then a file (temps.dat) with a nice table in it that is supposed to look like this.
Please use code tags.
You haven't declared cent or count anywhere in the code.
You have a type where you have typed 'farh' instead of 'fahr'. I would give you a line number, but you didn't use code tags... cent = (5.0/9.0) If you want to do floating point arithmetic, you need to specify that, like this. 5.0f/9.0f
When you have fixed these errors, you need to read in each value from the file, total them and divide by the number of elements and store that average in the file. Each time the user enters a new number, you need to recalculate this.