Question: Need help ASAP. I cant get this program to run in Visual Studio. It has two errors but I cant figure out what they are.

Need help ASAP. I cant get this program to run in Visual Studio. It has two errors but I cant figure out what they are. I've been trying to fix it for a couple of hours but no luck, I think I've been staring at it for too long. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!