Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program that compile with a similar result. Requirements: Unix based program using header.hpp main.cpp functions.cpp without the use of strings. Check that
Write a C++ program that compile with a similar result.
Requirements:
Unix based program using header.hpp main.cpp functions.cpp without the use of strings.
Check that the user input is valid.
Melcome to the flight information program. What is the name of the flight data file? notAFile.txt notAFile.txt was not found. Try again or type "quit' to exit the program What is the name of the flight data file? flights.txt Successfully loaded 8 flights Airline Flightt Departure Arrival From To United Jet Blue 123 345 2/28 at 23.50 6/10 at 8.00 3/l at 5-75 6/10 at 14.25 Portland Orlando Chicageo New York What would you like to do? (S)earch for a fligt, (A) dd a flight, (L)ist all flights, or Q)uit? A What is the name of the airline? Southrest What is the flight number? 4287 Enter the month, day and time of the departure: October 10 12.5 Error, you must enter a number for the month day and time Enter the month, day and time of the departure: 10 10 12. Enter the month, day and time of the arrival: 7119.25 Error, the arrival day and time must be after the departure day and time Enter the month, day and time of the arrival: 10 10 21.25 What is the departure city? Atlanta What is the arrival city? Seattle Southwest 4287 as successfully added to the database Melcome to the flight information program. What is the name of the flight data file? notAFile.txt notAFile.txt was not found. Try again or type "quit' to exit the program What is the name of the flight data file? flights.txt Successfully loaded 8 flights Airline Flightt Departure Arrival From To United Jet Blue 123 345 2/28 at 23.50 6/10 at 8.00 3/l at 5-75 6/10 at 14.25 Portland Orlando Chicageo New York What would you like to do? (S)earch for a fligt, (A) dd a flight, (L)ist all flights, or Q)uit? A What is the name of the airline? Southrest What is the flight number? 4287 Enter the month, day and time of the departure: October 10 12.5 Error, you must enter a number for the month day and time Enter the month, day and time of the departure: 10 10 12. Enter the month, day and time of the arrival: 7119.25 Error, the arrival day and time must be after the departure day and time Enter the month, day and time of the arrival: 10 10 21.25 What is the departure city? Atlanta What is the arrival city? Seattle Southwest 4287 as successfully added to the databaseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started