I have been doing c programming for about 3 days now and am pretty confused as to why this is not working. It basically is asking to estimate the temp inside a freezer after a certain time (t) power outage...
here is what i have so far, anyhelp is appreciated...
int time; /*time */
int temp; /* temperature */
printf("EE233 Spring 2010, P1: Power Failure Freezer Temperature Estimate."); /*Greeting */
printf("How long (hours and minutes) since the power failure to the freezer?>");
temp = (4*(time*time)/( time +2))-20; /*Calculate the temperature */
printf("The estimated temperature inside your freezer is %d degrees Celsius.", temp );
Not asking anyone to do this for me, just give me some hints on where to make this thing work...
Thanks for any help.