So, basically what this program needs to do, on 3 separate occasions, is to ask the user for information, once the user submits all the data, the program will then do a simple check of this data. For example- the user should input a complete name of an airline, this could be a fictional or a real Airline, but the name has to have more than 3 characters 1
1 2
2:cout <<"What airline will you be using?\n";
getline(cin, airLine);
If the data is "correct" according to our parameters, the program should then save tripMiles; as well as tripCost to totalCost and totalMiles.
Once that is completed, the user will have to answer the questions again, they can use the same or information. the prgram will check again for errors, if none are found we need to add the new values from tripMiles; and tripCost to totalCost and totalMiles.
This process will be repeated once more (users data/ checking for errors). Again taking the new values from tripMiles; and tripCost to totalCost and totalMiles.
the final step will be to average the cost per mile using data from the previous steps.
I can get the program to ask the user for the second input of data but it only asks for the first, second, third question and skips the forth question, this causes the program to give an error due to conditions not being met. If some one would kindly point in the right hat would be appreciated.