Question: Write (using structs and vectors) a C++ program that reads N number of private aircraft records from a text file (aircrafts.txt). The program prints the


Write (using structs and vectors) a C++ program that reads N number of private aircraft records from a text file (aircrafts.txt). The program prints the aircraft record's information in the format below: Aircraft Name: Aircraft Name (String) Manufacturer: Manufacturer Name (String) Takeoff Distance: Takeoff Distance in feet (double) Max Takeoff Weight: Max Takeoff Weight in pounds (double) Typical Seating: Number of seats (integer) Notes: 1) The text file could contain an arbitrary number of aircraft records such each record has 5 lines (see the example below). 2) Important note from the customer: Please print the records in a reversed order. That is, the last record read from the file is first printed as shown below in the output column. Gulfstream GV Aircraft Name: Falcon 7X Gulfstream Manufacturer: Dassault 5910 Takeoff Distance: 5506 91000 Max Takeoff Weight: 68998 13 Typical Seating: 15 Global 6000 Aircraft Name: Global 6000 Bombardier Manufacturer: Bombardier 6476 Takeoff Distance: 6476 99500 Max Takeoff Weight: 99500 12 Typical Seating: 12 Falcon 7X Aircraft Name: Gulfstream GV Dassault Manufacturer: Gulfstream 5506 Takeoff Distance: 5910 68998 Max Takeoff Weight: 91000 15 Typical Seating: 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
