I am only a beginner C++ programmer.
In my college class, I am suppose to write a program that calculates the fee of a group of passengers aboard a ferry.
There is one piece of code.
string reply;
cout << "Are you driving a vehicle onto the ferry?" endl;
cout << "Please anser 'y' or 'n': ";
cin >> reply;
and later on another...
string reply;
cout << "Is your vehicle over 7 feet 6 inches in height?" endl;
cout << "Please anser y or n: ";
cin >> reply;
cout << "What is the length of your vehicle in feet: ";
cin >> vehicleLength;
Using if/else statements preferrably, but if you have another way please tell me, how do you make the program ignore the last two lines of code if the reply in the first is 'n'?