// Program 2.25: Distance an object travels in miles
// and time it takes to travel that distance
// Author: Eric Martin
// Date: 9/30/2004
#include <iostream.h>
using namespace std;
int main()
{
int distanceInMiles;
int speedInMPH;
int timeInMinutes;
cout << "Computes time to travel given distance and speed" << endl;
cout << "Enter distance in miles: ";
cin >> distanceInMiles;
cout << "Enter speed in miles per hour: ";
cin >> speedInMPH;
timeInMinutes = distanceInMiles * 60 / speedInMPH;
cout << "It takes " << timeInMinutes << " minutes to travel "
<< distanceInMiles << " miles at "
<< speedInMPH << " miles per hour" << endl;
return 0;
}
When I build the program in Visual Studio..it comes up with fatal error: unable to locate .h file or somethin...wtf? :(