please be in c Write a program that estimates the temperatur

please be in c++

Write a program that estimates the temperature in a freezer in C degrees given the elapse time in hours since a power failure. Assume the temperature T is given by T = 4t^2/(t+2)-20 Where t is the time since the power failure. Your program should prompt user to enter how long it has been since the start of the power failure in hours.

Solution

#include<iostream.h>

#include<conio.h>

using namespace std;

int main()

{

double T,time,minutes,hours;

cout<<\"enter the elapsed time:\"/n);

cin>>time;

hours = time/3600;

minutes =time/60;

T = ((4*time*time)/(time+2))-20;

cout<<\"the elapsed time is\"<<endl;

cout<<\"which is equal to hours\";

cout<<time<<hours;

cout<<\"the freezer temperature is in degrees\"<<T;

System(\"PAUSE\");

return 0;

}

please be in c++ Write a program that estimates the temperature in a freezer in C degrees given the elapse time in hours since a power failure. Assume the tempe

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site