Question: Need help ASAP. I keep getting the same 4 errors on running this program in Visual Studio. I've been trying to fix it for over
Need help ASAP. I keep getting the same 4 errors on running this program in Visual Studio. I've been trying to fix it for over an hour and I'm not sure If I've been staring at it for too long at this point. Any ideas?
using namespace std; int main() { const void travelRate = "33865.7";
cout << "Buzz Lightyear can travel at a rate of " << travelRate << " miles per minute. ";
cout << endl << endl;
int travelTime = 0.73266; double fuelGallons = 9.34141; string tripName = "trip 2";
cout << "For Buzz lightyear to complete " << tripName << " his travel time would be " << travelTime << " minutes, and it would burn " << fuelGallons << " gallons of fuel."; cout << endl << endl;
travelTime = 4.83168; fuelGallons = 61.6039; tripName = "trip 3";
cout << endl << endl; cout << "For Buzz lightyear to complete " << tripName << " his travel time would be " << travelTime << " minutes, and it would burn " << fuelGallons << " gallons of fuel.";
cout << endl << endl;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
